oapi-codegen
oapi-codegen copied to clipboard
Generate Go client and server boilerplate from OpenAPI 3 specifications
I am not sure if these two should be different? definitions ```yaml Foo: type: object additionalProperties: true Bar: type: object additionalProperties: type: object ``` code generated ```go // Foo defines...
In the context of Polymorphism there are cases where the discriminator could have multiple values pointing to the same object ``` CommunicationChannel: type: object oneOf: - $ref: '#/components/schemas/Phone' - $ref:...
Since version v2.2.0 all unexported fields (renamed via `x-go-name`) are now exported even though they have been named lowercase. Reproducible with the example `xgoname` in this repository. Would need a...
It would be really nice to provide a flag to append a prefix or suffix to the server and other commonly named structures. Right now if you would like to...
It'd simplify changes in #1532 but isn't a requirement as it's trivial to hand-roll.
I am trying to implement an endpoint to download a file from a bucket. Following the [swagger documentation](https://swagger.io/docs/specification/describing-responses/#response-that-returns-a-file) , I have created the following openapi schema: ``` openapi: 3.0.3 paths:...
The OpenAPI spec allows specifying multiple security schemes per endpoint/api. Examples taken from : Example 1: ```yaml security: # A OR B - A - B ``` Example 2: ```yaml...
As part of #1254 I'm looking at documenting the way that `securitySchemes` works, and it turns out it's a little more lackluster than I remember. Right now, if you define...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | golang.org/x/tools | `v0.21.1-0.20240508182429-e35e4ccd0d2d` -> `v0.34.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/)...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | golang.org/x/text | `v0.15.0` -> `v0.16.0` | [](https://docs.renovatebot.com/merge-confidence/)...