oapi-codegen
oapi-codegen copied to clipboard
Generate Go client and server boilerplate from OpenAPI 3 specifications
Steps to reproduce: Visit https://lichess.org/api and click download for the openapi spec file. ``` $ oapi-codegen -package openapi ./openapi.json > lichess.gen.go error loading swagger spec in ./openapi.json : error unmarshaling...
Hi, thank you for your project, it's exactly what i'm looking for some time :100: I'm also developing rest API using Go and Echo and we use OpenAPI to document...
Great tool that (nearly) has worked out of the box for me. However, I encountered that the `file` type is currently _not_ supported (see https://swagger.io/docs/specification/data-models/data-types/#file in spec).
This is the feature request to provide official docker image to use it in different pipelines (gitlab/github/etc), to use it locally without installation. A have already made PR for this...
I'm using a gin router and passing a middlewarefunc to `RegisterHandlersWithOptions`. One middleware func is a `OapiRequestValidatorWithOptions`. That function does not exit properly. If the request fails the security check,...
Hi Folks, I'm been looking into a case where we seem to have hit some wall. For some reason, Swagger UI is able to handle the case attached, but the...
`oapi-codegen` is not able to generate Go types from references using [URL refs](https://swagger.io/docs/specification/using-ref/) in the `components` section. Example specification: ```yaml paths: "/example": post: summary: Do something requestBody: $ref: "#/components/redacted" responses:...
This disables the call to `InternalizeRefs` by default in `GenerateInlinedSpec`. Currently, internalizing external references results in broken validator due to https://github.com/getkin/kin-openapi/issues/618 and is unnecessary because of `import-mapping` configuration feature. Not...
Error message: **configuration error: package name must be specified** ```bash $ go version go version go1.19.3 darwin/amd64 $ go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest $ ls specs.yaml $ oapi-codegen specs.yaml configuration error: package...
Enable more linters for `golangci-lint` and fix the issues that the additional linters highlight. This addresses: * Missing error checks. * Duplicate code. * Direct error comparison instead of `errors.As`...