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 utilized this library to create a client from an OpenAPI specification, and now I aim to develop an interceptor for monitoring outgoing HTTP requests using Prometheus. However, the request...

🧠 needs more thinking

Removed from https://github.com/deepmap/oapi-codegen/pull/1389 for time, was: ``` +++ internal/test/issues/issue-1378/bionicle.yaml @@ -0,0 +1,45 @@ +openapi: 3.0.1 + +info: + title: Test + description: Test + version: 1.0.0 + +paths: + /bionicle/{name}:...

documentation

Resolves an issue with type collision when enum values start with `_` (underscore) value.

bug
awaiting reply
area:enums

As part of #1389 we added this - we should make sure it covers _all_ cases a `$ref` can be found

area:external-refs

The types generated from the following spec sample will not generate the **enum** definition: ```` openapi: 3.0.0 paths: /test: get: operationId: Test responses: "200": content: application/json: schema: $ref: '#/components/schemas/test' components:...

## Bug description Generated types code, containing useless models. ## Reproduction openapi.yaml ```yaml openapi: 3.0.3 info: title: Swagger authorization - OpenAPI 3.0 description: |- authorization api doc version: v1 servers:...

For slice parameters for example `[]string`, we prefer to use it as a flat array, instead of `*[]string`. So we can add the property `x-go-type-skip-optional-pointer: true` in the spec: ```...

As part of #695.

area:external-refs

Is there a possibility of creating a combination of `StrictServerInterface` and `ServerInterface`. I sometimes run into problems, when I need the `http.ResponseWriter` and `*http.Request`. One example is for a Websocket...

help wanted
question