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

Generating client that has request body with **oneOf** leads to problem with creating valid request. Generated models has invalid inheriting and seems like one json body model is redundant Version:...

I have swagger file ``` openapi: 3.0.1 info: title: test description: API description in Markdown. version: 0.1.0 servers: [] paths: /test: get: summary: test responses: 200: description: OK content: application/json:...

enhancement

Hi. I'm working on a streaming (text/event-stream) example and I noticed the generated code doesn't flush the output properly. I've tracked this down to the code in pkg/codegen/templates/strict/strict-interface.tmpl, which looks...

It doesn't look like this is supported, it would be nice to have it as an option. Currently, the generated code for JSON encoding a response looks like so: ```...

enhancement

Hello! I encountered a problem while using code generation with the `Echo` framework and the strict handler functionality. # Problem Definition The issue arises when defining an HTTP handler with...

Hi! I'm new to `oapi-codegen` and absolutely love it! I'm working on generating models for use with `gorm`, and I'm facing a challenge with needing actual references to structs in...

question

Hello, I have a schema that has `operationId: foobar` as follows. ```yaml openapi: 3.0.3 info: title: Example version: 1.0.0 paths: /foo/bar/{param}: parameters: - in: path name: param schema: type: string...

- The version of oapi-codegen you're using: `v2.3.0` - The YAML configuration file you're using: ``` package: duplicateFieldBug generate: echo-server: true client: true models: true embedded-spec: true ``` - The...

fixes: #1752 ❓I haven't found a better way to write tests other than copying parameter tests, but I haven't done that yet. Please let me know what else I can...

The version of oapi-codegen you're using - v2.1.0 The YAML configuration file you're using: ```yaml package: openapi generate: fiber-server: true models: true output: server_interface_gen.go ``` The OpenAPI spec you're using:...