-
Notifications
You must be signed in to change notification settings - Fork 37
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 OpenAPI templates and generator #796
Conversation
Reference OpenAPI commit: 638af0fe37e2786ca3d6f5a8d764b346b2cc74a6
- Cargo.toml: better match what we use - model.mustache: int enum support and removed double optional - lib.mustache: disable some extra warnings - api.mustache: uuid support
8bfde41
to
98ad6d1
Compare
No New Or Fixed Issues Found |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #796 +/- ##
=======================================
Coverage 58.55% 58.55%
=======================================
Files 178 178
Lines 11544 11544
=======================================
Hits 6760 6760
Misses 4784 4784 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we open a PR with the changes for the bindings? I think the templates looks good but would be nice to look at the bindings before merging this.
## Type of change ``` - [ ] Bug fix - [ ] New feature development - [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ``` ## Objective Regenerate bindings based on the changes in #796 Based on server at commit bitwarden/server@a9ab894
Type of change
Objective
Update OpenAPI templates and generator to the latest version available:
The first commit (5564407) contains the changes from upstream as-is, the second commit (1249b12) contains all the changes we need to make. This way it should be easier to apply the changes in the future.
The diff with upstream is a bit smaller now and also does less unnecessary allocations. Also I've updated the Cargo.toml template to more closely match ours. Once this is approved I'll make a separate PR to regenerate the bindings.
The changes to the generated bindings are fairly minor:
[JsonConverter(typeof(Base64UrlConverter))]
on the server. We have some API endpoints that make use of it on the server but at the moment we're not using them.