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

Hi. I am having troubles running the following `oapi-codegen` command: `oapi-codegen -old-config-style -generate types -package notabene -o notabene_types.gen.go openapi.json` I get the following error: ``` panic: runtime error: invalid memory...

v1.12.2 Right now NewClientWithResponses returns *ClientWithResponses which makes it difficult to test, it should be returning ClientWithResponsesInterface instead

Gin `Bind` (`MustBind` under the hood) aborts the request immediately and sends a 400 error as plain text to the client. ``` if err := ctx.Bind(&body); err != nil {...

I use a static schema for JSON in the project, so it was inconvenient with constant omitempty in the json tag. I update examples & added support for: 1. Changing...

Proposed update to GoTypeDef to enable forcing a non pointer type. This is useful in go to avoid using `*string` instead of `string` in most cases where the value is...

awaiting reply

Hi, I am trying to understand how the generation is supposed to handle default values that are part of the open api spec. In my case, I have the following...

Let me know if this is not in the scope of this project, I assumed it would be but I understand if it's not. While I was working I had...

Hi all, I have a problem when using Echo group. It's not pass OapiRequestValidator middleware verification with route has prefix of group. For examples, when I define a swagger GET...

In a recent requirement, I need to build a WebAssembly in Go to be consumed by frontend. As part of the WebAssembly it needs to call OpenAPI at some backend...

It would be nice if simple type aliases e.g. enums would implement [The Gorm Scanner/Valuer Interface](https://gorm.io/docs/data_types.html#Scanner-x2F-Valuer). Since Gorm is with 30k Stars on GitHub (https://github.com/go-gorm/gorm) is quite frequently used in...