Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update autogenerated swagger files #593

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

dani-garcia
Copy link
Member

Type of change

- [ ] Bug fix
- [ ] New feature development
- [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

Extracted the autogenerated code from #590

@bitwarden-bot
Copy link

Logo
Checkmarx One – Scan Summary & Details62523650-9cfc-4817-881a-c720e85975db

No New Or Fixed Issues Found

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (575dd19) 57.79% compared to head (ee24056) 57.79%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #593   +/-   ##
=======================================
  Coverage   57.79%   57.79%           
=======================================
  Files         168      168           
  Lines        9907     9907           
=======================================
  Hits         5726     5726           
  Misses       4181     4181           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

dani-garcia added a commit that referenced this pull request Feb 8, 2024
## Type of change
```
- [ ] Bug fix
- [ ] New feature development
- [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other
```

## Objective
Update swagger generator to version 7.2.0, pull in the new templates and
generate the new API crates.

I've also updated the build instructions to use .NET 8, as is required
in the latest server code.

The version of the server code used to generate this is
bitwarden/server@fc1d7c7
I've had to make some small modifications to the server code to get it
working, ~~and I'll link the PR here shortly.~~
bitwarden/server#3760

To make this easier to review, I've split this into three commits:
- b42f189: Update the swagger and
dotnet versions, and pull in the new templates as-is. Note that this
won't generate working code.
- 9727d46: Patched the provided
templates to make it work with our code. This is in a separate commit to
make it easier to see what we've changed and hopefully make it easier in
the future to update these templates. The changes are:
    - Ignore warnings by default 
    - Use Uuids instead of strings
    - Use serde_repr to support int enums
    - Disabled default features for reqwest (to remove default tls)
- Removing double optionals (This could be reverted once we're better at
marking everything as required in the server)
- ~~f9b63606477d0f0f987b8534ef6e6755c76003a2: New autogenerated swagger
code, no manually edited files here.~~ Moved to a separate PR (#593)
@dani-garcia dani-garcia merged commit 2f9a9f6 into main Feb 8, 2024
57 checks passed
@dani-garcia dani-garcia deleted the ps/update-swagger-autogenerated branch February 8, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants