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

The `oapi-codegen` command does not print a newline after some error messages. Here is an example: ``` nandakumar@nandakumar-laptop:~/git/oapi-codegen/cmd/oapi-codegen$ oapi-codegen api.yml configuration error: package name must be specifiednandakumar@nandakumar-laptop:~/git/oapi-codegen/cmd/oapi-codegen$ ``` Expected: ```...

In testing 96482c12b, I've found that the `From...` and `Merge...` methods generated by discriminator usage do not use the type generated from usage of `enum` in the spec. For example,...

It is handy for cases when openapi spec is generated from sources and source's types reuses types generated from other openapi spec.

When generating from a yaml spec this project converts to JSON first. However if given a JSON spec it still attempts to convert yaml to json failing... ``` error loading...

``` type StrictHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, args interface{}) (interface{}, error) type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc ``` Types are generated with the api and are part...

Demonstrates and fixes a problem when a schema has both `additionalProperties` and `oneOf` union, and two clashing `MarshalJSON` and `UnmarshalJSON` methods are generated: https://github.com/deepmap/oapi-codegen/issues/763 The handling isn't perfect, because the...

The following spec: ```yaml openapi: 3.0.1 info: title: OpenAPI-CodeGen Test description: 'This is a test OpenAPI Spec' version: 1.0.0 servers: - url: https://test.oapi-codegen.com/v2 - url: http://test.oapi-codegen.com/v2 paths: /cat: get: tags:...

It has been quite a while since the last release, and some significant new features have been merged since then (in particular, I'm waiting for the Gorilla server implementation, to...

Suppose I have the following model definition in my api.yaml: ```yaml components: schemas: MyModel: title: My model properties: status: type: string enum: - PENDING - COMPLETED ``` With the recent...