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

In some case, external references is not propagated. So allOf generates broken code.

Consider these two specifications: ```yaml #a.yaml openapi: 3.0.0 components: schemas: Merged: allOf: - $ref: '#/components/schemas/Example' - $ref: 'b.yaml#/components/schemas/Merge' Example: type: object properties: a: type: string c: $ref: 'b.yaml#/components/schemas/Element' ``` ```yaml...

#1052 If the parent directory of the output file doesn't exist, it will be automatically created before writing the generated code. This prevents errors if the specified output path contains...

When using gin server, StrictServer mode generates `StrictServerInterface` with standard context. This force user to edit the generated file or user has to drop all the gin context features. Following...

The way the code tried to access user set values on the iris context was wrong. This PR leverage the "user" storage provided by the iris Context object. fixes #1988

When generting an iris server from a specification that uses any `securitySchemes`. The generate code tries to uses a method `Set` on the `iris.Context` that does not exists. Example specification...

Fiber reuses the pathBuffer for each request and, which can lead to unexpected behavior if parameters are accessed and passed directly using c.Param("%s", key). Instead of using the parameter reference...

### Refactor: Pass request context instead of gin.Context in handler template #### Description: This PR modifies the handler function template to use `ctx.Request.Context()` instead of passing `ctx` directly. This change...

auto:no-mentions

Hello, I've looked for duplicate, but could not find exactly the same bug (as far as I searched), here are related ones: - https://github.com/oapi-codegen/oapi-codegen/issues/626 - https://github.com/oapi-codegen/oapi-codegen/issues/1496 - https://github.com/oapi-codegen/oapi-codegen/issues/1872 - https://github.com/oapi-codegen/oapi-codegen/issues/1882...

I need to disable type aliases for some types but not all. I noticed there is actually a feature for that, but for some reason it is only available for...