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

Hello! I'm trying to override the default error with a custom struct (ProblemDetails) when the input is invalid in strict-server mode. But it seems like I have to apply the...

source: https://clerk.com/docs/reference/backend-api config ```yaml generate: models: true client: true ``` it failed to generate types for schemas defined in response and allOf peroperties

This is my main function ```go package main import ( "net/http" // chiMiddleware "github.com/deepmap/oapi-codegen/pkg/chi-middleware" "github.com/Skeeve/CSApi/internal/generated" "github.com/Skeeve/CSApi/internal/handlers" "github.com/Skeeve/CSApi/internal/middleware" "github.com/go-chi/chi/v5" chiMiddleware "github.com/oapi-codegen/nethttp-middleware" ) func main() { r := chi.NewRouter() swagger, _ :=...

It creates tests with broken aliases using nested external references. Also, it provides a possible fix that makes code compilable.

We are using oapi-codegen as a library to split out client operation code by tags into separate files. However, it is currently impossible to do this in a single running...

enhancement
help wanted
codegen-as-library

Hi, I've encountered an unusual behavior with code generation and wanted to share my findings. While I'm not entirely sure of the root cause, I was able to consistently reproduce...

Hi! Here's just a simple call that merges `allOf` section inside of the property if it's needed. For more context, see the [issue](https://github.com/oapi-codegen/oapi-codegen/issues/1746).

Hi!👋🏻 Current template for fiber-server has incorrect type for header values, because [HTTP Spec allow sending multiple http headers with the same name](https://www.rfc-editor.org/rfc/rfc9110.html#section-5.3), like `Set-Cookie` header. Need to change template...

For a given schema: ```yaml components: schemas: SampleSchema: properties: foo_bar: $ref: '#/components/schemas/foo_bar' foo_bar: properties: is_valid: type: boolean ``` with the endpoints: ```yaml components: schemas: ASampleSchemaList: $ref: "#/components/schemas/SampleSchema" SampleSchema: $ref: "sample_schema.yaml#/components/schemas/SampleSchema"...