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 there. I'm working on a project where the team currently use the [email protected] command line tool, and we were looking into upgrading to the newest version v2.3.0. The issue...

awaiting reply

Fixes https://github.com/oapi-codegen/oapi-codegen/issues/240

```yml openapi: 3.0.2 servers: - url: /api info: title: Demo version: 0.0.1 paths: /demo: get: responses: 200: $ref: "#/components/responses/DemoBrokenResponse" components: responses: DemoBrokenResponse: description: | Generated struct tries to reference an...

I couldn't find anything in the existing issues for this, but I'm hoping it's possible somehow. The API I'm generating against has endpoints that are versioned: `"/slurm/v0.0.41/nodes/": { ... }`...

Closes: #1682 I copied the logic from the other servers, though I'm not sure what is the use of having things like: ``` err = fmt.Errorf("Error unescaping cookie parameter '{{.ParamName}}'")...

This PR fixes two issues related to streaming of server-sent events (SSE). One is documenting streaming responses through an example. This showcases how an SSE endpoint could be specified and...

The [OSM SOL005](https://osm.etsi.org/docs/user-guide/latest/12-osm-nbi.html) API spec has a bunch of objects that define the following two ID fields: ``` Alarm: description: | Alarm Information type: object properties: _id: description: Identifier of...

bug

I.e. to have a single configuration file?

enhancement

Is there a verbose flag or a way to see line numbers/more info/etc for generation failures? eg ``` oapi-codegen -package indexapi apis/openapi_resolved.yaml > indexapi.gen.go error loading swagger spec in apis/openapi_resolved.yaml...

enhancement

Although this now appears to be fixed, we should add a test case for it.