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

Via https://github.com/deepmap/oapi-codegen/issues/249#issuecomment-1517859944 and (TODO: add other issue references) we should make it possible to decompose a large API across multiple types. This would be opt-in, and maybe configurable as to...

enhancement

Hi there 👋 I use the tool extensively at work and thought it'd be really great to generate some `consts` based on [the JSON schema keywords](https://swagger.io/docs/specification/v3_0/data-models/keywords/). This PR adds features...

auto:no-head-branch

Hi, I have the following `openapi.yml`: ```yaml ... /users: get: summary: Get a user by surname parameters: - in: query name: surname schema: type: string required: true description: The user's...

- Go version: `go1.24.7 linux/amd64` - `oapi-codegen` version: `v2.5.0` - Configuration: default - OpenAPI spec: 3.0.0 - Problem: Consider a simple `api.yaml`: ```yaml openapi: 3.0.0 info: title: api version: 1.0.0...

We use server code generation with the `strict-server: true` parameter. During generation, we obtain the following structures for the response ```go GetHealthcheck200JSONResponse{ Timestamp: time.Now().UnixMilli(), } GetHealthcheck500JSONResponse{ Timestamp: time.Now().UnixMilli(), } ```...

The imported response bodies are not getting generated as go types with the following file set. As you can see the `matchmakeResponse.yml` type is not generated. I have the following...

## Description Similar to the situation described in #240, the `ClientWithResponses` generated code is not as helpful as it could be. - We use `oapi-codegen` to quickly generate SDKs to...

Added an option to inject request metadata into the context for the std-http-server. This will be useful for downstream logging, metrics, tracing, observability, and custom authorization implementations. Checklist: - All...

# Add MCP (Model Context Protocol) Server Code Generation This PR adds comprehensive support for generating MCP servers from OpenAPI specifications, enabling AI agents to interact with APIs through the...