-
Notifications
You must be signed in to change notification settings - Fork 19
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
OpenAPI 3 #558
Conversation
Not properly tested, but this is the right direction. This + merge solves the problem of the openapi code going out of sync.
This does not pass the validation on https://editor.swagger.io/ |
Thanks, I didn't know about that. |
Also theres like a ton of duplicated "jwt" things |
I've made two fixes in #590. |
It seems like I still need operationId. Could you check if it can be added via the openapi3 library you're using for HCI? Context for why I need it: oxidecomputer/progenitor#517 (comment) |
Could you try #592?: nix build hercules-ci-agent/openapi3-operationId#hercules-ci-api-openapi3 |
The client creation no longer fails on that (fails on something else now). So I guess it's fine? One thing that looks wrong to me is the way you just use replace many times with hard-coded values. Maybe there's a nicer way of doing it that's more dynamic? |
Upstream doesn't support it properly. The string replacements are a bit ad hoc, but it's the most efficient way to add this information, until servant implements it properly. |
Adds OpenAPI 3 schema in parallel to existing Swagger 2 schema, as backend codegen currently relies on that.
For #553
Retrievable with