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

I use google's UUID quite a bit in my code. The adition of x-go-type-import made that trivial to use in API generation, unfortunatly, sometimes the generation imports the gofrs/uuid package...

Schema ``` schema: type: object properties: name: type: string comment: type: string default: "" required: - name ``` Generated as: ``` type AddItemJSONBody struct { Name string `json:"name"` Comment *string...

This PR extracts GetImport from GetImports so that schemas defined in parameter and header components can be added easily. The PR is relatively small and a test has been added...

# Overview an example resolving of https://github.com/deepmap/oapi-codegen/issues/751 ## changes * add test `internal/test/issues/issue-removed-external-ref` * add `UppercaseFirstCharacterWithPkgName ` function for `ucFirstWithPkgName` filter * use `ucFirstWithPkgName` filter instead of `ucFirst` filter in...

# Overview Because we handle `.Ref` as simple string in `strict-interface.tmpl`, an output get like a `type ExxxxResponse = ExternalRef0Foo` in the case of generating alias type of type in...

I'm in trouble to generate code with following conditions. * HTTP response schema defined via reference(`$ref`) * HTTP response has HTTP header starts with digits. According to RFC7230, HTTP header...

When schema object is defined as `oneOf` or `anyOf`, the server generator creates it as a struct with a `union` field and `json.RawMessage` type value. Example: ``` type Config struct...

## Summary of changes Enum constant values for parameter and response types are also generated. This was not generated before.

- [x] merge master - [x] remove github actions - [x] add cli option https://github.com/deepmap/oapi-codegen/issues/143 --- example: ![image](https://user-images.githubusercontent.com/10897528/129876814-f3348f32-9c03-4976-8b7a-12df01dc8342.png)

All: Is there a full set of enumerated documentation for the CLI options? Likewise, "help" or "-?" should be implemented to provide a robust CLI option output. Has this been...

enhancement
good first issue