-
Notifications
You must be signed in to change notification settings - Fork 359
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
ariels' version of: Upgrade version of oapi-codegen
#7532
base: master
Are you sure you want to change the base?
Conversation
No linked issues found. Please add the corresponding issues in the pull request description. |
oapi-codegen
oapi-codegen
Looks like the current failures are due to |
Yeah, I figured those out. Now it's broken because the new codegen the OpenAPI 3.1 interpretation that forbids DELETE with a body. Can I override that setting somehow? |
@arielshaqed the reason for the failures was due to the incorrect placement of the template files. It changed a lot since the old 1.5.6 days... Mind the change under the: |
a7cb835
to
15f6aab
Compare
🎊 PR Preview 9ebd118 has been successfully built and deployed to https://treeverse-lakeFS-preview-pr-7532.surge.sh 🕐 Build time: 0.012s 🤖 By surge-preview |
To get the latest features and bug fixes, we should bump to the latest version of the library.
Still doesn't compile.
Still does not compile: generated type of AbortPresignMultipartUpload method changed, and it is not clear where to get the body! ```compilation pkg/api/serve.go:59:35: cannot use controller (variable of type *Controller) as apigen.ServerInterface value in argument to apigen.HandlerFromMuxWithBaseURL: *Controller does not implement apigen.ServerInterface (wrong type for method AbortPresignMultipartUpload) have AbortPresignMultipartUpload("net/http".ResponseWriter, *"net/http".Request, apigen.AbortPresignMultipartUpload, string, string, string, apigen.AbortPresignMultipartUploadParams) want AbortPresignMultipartUpload("net/http".ResponseWriter, *"net/http".Request, string, string, string, apigen.AbortPresignMultipartUploadParams) ```
The new Kin generator actually enforces examples are correct. This is a Good Thing.
Apparently Kin now enforces even more OpenAPI rules.
The new generated code no longer aliases some types. This manifests primarily in all pagination parameters, which are now actual strings and ints.
This PR is now marked as stale after 30 days of inactivity, and will be closed soon. To keep it, mark it with the "no stale" label. |
ariels' version of #7493. This one is more for working and linking than it is for pulling!