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 we implemented #499, it was started before we had Gorilla Mux supported (#465), therefore support is missing. We should add support for Gorilla Mux.

Although #544 couldn't have been caught by this, we may be able to flag to users of cases where their OpenAPI is incorrect. This is a draft because until https://github.com/deepmap/oapi-codegen/issues/373...

☢️ breaking change

It looks like several months ago the config parameters were completely revamped but this doesn't seem to be reflected in either the current readme or the text displayed when running...

When writing handler functions for the OpenAPI Validation Middleware, it's a little odd that we get i.e.: ```go api.GorillaServerOptions{ ErrorHandlerFunc: func(w http.ResponseWriter, r *http.Request, err error) { ``` But then...

Related to https://github.com/deepmap/oapi-codegen/pull/471 Hello! `mapping` field is useful for explicit mapping: > In scenarios where the value of the discriminator field does not match the schema name or implicit mapping...

Before this, the methods of strict server would return empty interface, like so: `FindPets(ctx context.Context, request FindPetsRequestObject) interface{}` With this PR, methods will return an interface unique to each method...

#397 This happens again in v1.11.1? I've disabled Swagger validation, then the BaseURL works.

Hello, I have an OpenAPI Schema that uses inheritance like this. ```yaml ViewConnectionNoRelationship: type: object additionalProperties: false allOf: - $ref: "#/components/schemas/ViewConnectionBase" - type: object additionalProperties: false properties: name: type: string...

area:*of

Closes #607. This PR introduces template file overrides from filenames. Overrides listed in `output-options.user-template-files` will just override whatever is given by `output-options.user-templates`, so this doesn't break any existing configuration files....

Current implementation server middlewares to a handler goes like this: ```go var handler = func(w http.ResponseWriter, r *http.Request) { siw.Handler.YourRouteHandler(w, r) } for _, middleware := range siw.HandlerMiddlewares { handler...