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

# Issue https://github.com/deepmap/oapi-codegen/issues/1373 Stack overflow error happens `merge_schemas.go` when `allOf` contains circular `$ref`. # Cause & How to fix https://github.com/deepmap/oapi-codegen/blob/1f53862bcc64573d3d0c4c105c71a8143e7b1816/pkg/codegen/merge_schemas.go#L87 `mergeOpenapiSchemas` is called recursively until all items in `allOf` are...

bug

As it doesn't actually do anything, as it wraps an existing server i.e. Chi. Closes #1558. --- Maybe this should be split into a separate option to add the `strict-server-models`?...

For much more control over how `oapi-codegen` works - `overrides.spec` to override a JSON path in the OpenAPI specification - `overrides.schema` to override the derived `codegen.Schema` that `oapi-codegen` generates

enhancement

i.e. `ComponentsSchemaPet` to make sure that everything is definitely not going to clash (as we've had before with i.e. `Client`)

enhancement

To lead into folks being able to configure #1388 or the existing `kin-openapi`. By default, we'll have `kin-openapi`.

enhancement

I have a couple OAS specs in my app. One of them loads a schema from another spec file, using something like this: ```yaml components: specs: MyFoo: $ref: '../otherdir/otherspec.yaml#/components/schemas/Foo' ```...

bug

https://github.com/deepmap/oapi-codegen/blob/master/configuration-schema.json#L65

documentation