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 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...

area:additionalProperties

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...

awaiting reply

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.

chore

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...

enhancement

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` | [![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2ftools/v0.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2ftools/v0.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)...

dependencies

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](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` | [![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2ftext/v0.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)...

dependencies