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

When I generate this manifest all the request and response structs are getting declared twice for some reason. When I check the schema I only see them defined once. Here...

This PR refactors code to remove duplicated values accessing from extension maps.

Hello! Please take a look to this repository with reproduction case https://github.com/excavador/deepmap-strict-server-external-ref Run `make` to observe the issue ``` ➜ make go mod tidy go mod download go build ./......

area:external-refs

https://github.com/hossein1376/grape

new server

Hi, I am trying to integrate the paypal with my ecommerce solution. I am trying to generate client code , types from PayPal OpenAPI spec given in https://github.com/paypal/paypal-rest-api-specifications. The particular...

question

If paths contain an external reference and the schema of the operation parameter is an array, code generation fails.

area:external-refs

Enum types in return types are not handled properly, they get generated as `N200[attribute name with first letter uppercase]` which is not defined in the struct This results in an...

This PR fixes `TestRefPathToGoType` which failed when test [shuffling](https://pkg.go.dev/cmd/go/internal/test) enabled: ``` -shuffle off,on,N Randomize the execution order of tests and benchmarks. It is off by default. If -shuffle is set...

According to #882 , setting `swagger.Servers = nil` skips the server name matching, but the problem is if for example one has a base path in the server url entry...

enhancement
documentation

The field of the go structure corresponding to the nullable and required OpenAPI property has zero value. In this case, if there is no 'nullable-type' option, the field is encoded...

question