oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

Generate Go client and server boilerplate from OpenAPI 3 specifications

Results 633 oapi-codegen issues
Sort by recently updated
recently updated
newest added

I follow the example from https://github.com/deepmap/oapi-codegen/tree/master/examples/petstore-expanded/strict/api I actually intend to use it with echo server but so simplicity sake, try to generate the same petstore-server.gen.go using the cmdline as follows:...

The generator fails to generate a spec when the schemas use a `$ref` that points to an external JSON schema. This was previously working in v1.11.0. Now broken in v1.12.x....

Would it be possible to extend the StrictServerInterface to support something like this in an automated way: ``` responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/Component'...

enhancement

When I have a reference like ``` "$ref": "#/components/schemas/ErrorResponse" ``` and a corresponding structure: ``` "schemas": { "ErrorResponse": { "type": "object", "required": [ "message" ], "properties": { "message": { "description":...

area:external-refs

Following example masked any identifying information ``` responses: 200: description: "Success" content: application/json: schema: title: SomethingSuccess type: object required: - results properties: results: type: array items: anyOf: - type: object...

I'm having trouble using binary parameters, I'm not sure what I'm doing wrong. I have a parameter defined with: ``` "note-prefix": { "type": "string", "format": "byte", "description": "Specifies a prefix...

i am currently tinkering around with the code gen. i have a minimal swagger.yaml with a simple `GET ping` that should return a `Pong` or a `{ resp: Pong }`...

server:echo
server:strict