oapi-codegen
oapi-codegen copied to clipboard
Generate Go client and server boilerplate from OpenAPI 3 specifications
I need a multi value header, namely `Accept-Language`. As per my understanding from [RFC 9110 HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html#section-5.2) and [Mozilla Docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language), it's a valid HTTP request to have multiple values in...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/getkin/kin-openapi](https://togithub.com/getkin/kin-openapi) | `v0.123.0` -> `v0.124.0` | [](https://docs.renovatebot.com/merge-confidence/)...
https://github.com/deepmap/oapi-codegen/tree/master/examples/petstore-expanded
See #970... @gerhardwagner suggested a fix which also works for me, so I've created a quick PR. I'm not familiar with the actual codebase so not sure if tests are...
I have request that returning in response type **Event** defined like: ``` event: oneOf: - $ref: '#/components/schemas/eventTypeOnetimeEditableField' - $ref: '#/components/schemas/eventTypeRepeatableEditableField' ``` Generated types are: ``` type Event struct { union...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | golang.org/x/tools | `v0.20.0` -> `v0.21.0` | [](https://docs.renovatebot.com/merge-confidence/)...
Hello! Here is a simple exmaple of spec: ```yaml openapi: 3.0.3 components: schemas: queue: type: object properties: ticket: x-oapi-codegen-extra-tags: db: ticket,merge allOf: - $ref: "#/components/schemas/ticket" queue2: type: object properties: ticket:...
Strict gin server doesn't currently use an error handler function. This adds the error handler to the strict gin handler
closes https://github.com/deepmap/oapi-codegen/issues/1515 MarshalJSON returns combined json marshal errors in AdditionalProperties. e.g. Before `error marshaling 'unsupportedType1': json: unsupported type: chan int` ↓ After `error marshaling 'unsupportedType1': json: unsupported type: chan int...
Adds an option to the `generate` options in the configuration yaml, allowing for defining what additional user-defined templates to call. Data passed to template is an object containing both the...