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

If using a custom media type such as `application/vnd.api+json`, it's generally safer to wrap this into a constant to reduce duplication and risk of errors. We could generate a constant...

General problem: I the generator generates redundant struct/object definitions for referenced query parameters (and most likely other referenced parameters) test_specs/parameters-ref-collision.yaml ```yaml openapi: "3.0.2" info: description: example openapi spec version: v1...

Having the following folder structure ``` ├── src │ ├── api │ │ └── openapi.yaml │ ├── hyperion │ │ └── node.json ``` With **openapi.yaml** ``` openapi: 3.0.3 info: version:...

There are a few places where we're saying Swagger instead of OpenAPI. As Swagger has been retrospectively named OpenAPI 2.0, we should try and migrate all references accordingly. We'll need...

This is a fix for #666. It seems to work fine, based on https://github.com/OAI/OpenAPI-Specification/issues/2165 discriminators should be inherited with AllOf, and it can safely be done when only one parent...

allows for a custom error handler option to the gin server code generation. default/existing behavior is preserved. i really want my employer to use this tool going forward, but gin...

When the gin server code is generated, it provides a wrapper for the service interface. This wrapper does some request validation logic; however, when it encounters an error, it dumps...

I found this in the gorilla-server generator, not sure if it's also the case for other server generators. When setting the `Methods` for the `HandleFunc` string literals are used (e.g....

good first issue

Given the following OpenAPI: ```yml openapi: '3.1.0' info: title: '' version: '' servers: [] paths: "/healthcheck": get: summary: "Healthcheck endpoint" responses: '200': description: OK content: application/json: schema: type: object additionalProperties:...