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

As mentioned in #1964 Version: 2.4.1 Issue: Status code is set to 200 before marshalling data into body inside visit functions, so when an error occurs marshalling the ResponseErrorHandlerFunc cannot...

bug
server:strict

Since this pattern `var _ StrictServerInterface = (*PetStore)(nil)` should be use on very rare cases. Instead of doing so, the code generator could generate an `unimplemented` struct type that could...

As noted in #1914, there are cases where trying to interact with a `text/plain` endpoint that requires input, for instance when receiving a UUID, may not render correctly. We should...

bug
client

As found with #1976, this doesn't seem to be the most helpful error - what can we do / how can we make it more actionable?

documentation

I.e. if trying to generate all types for https://github.com/oapi-codegen/oapi-codegen/tree/main/examples/client this fails with: ``` error generating code: error generating type definitions: error generating Go types for component schemas: error converting Schema...

bug
documentation

For your consideration: this is intended to reproduce #1262, see https://github.com/oapi-codegen/oapi-codegen/issues/1262#issuecomment-2868180395 in particular. I've also included a proposed fix which lets you `Bind()` to read non-file parameters in an `multipart/form-data`....

I get `request body has an error: failed to decode request body: part Fields.0.Name: undefined` But this goes away if I manually change the generated struct to have: ```go `Name...