openapi-go icon indicating copy to clipboard operation
openapi-go copied to clipboard

OpenAPI structures for Go

Results 17 openapi-go issues
Sort by recently updated
recently updated
newest added

OpenAPI does support XML data https://swagger.io/docs/specification/data-models/representing-xml/ but this library currently only has SetJSONResponse methods. Would be good to see XML support

As described in [this article ](https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0) by the OpenAPI Initiative , there are a few changes from OAS3.0 to OAS3.1. I might be wrong but it seems that the majority...

``` "responses":{ "200":{"description":"OK","content":{"text/vnd.graphviz":{"schema":{}}}}, "404":{ "description":"Not Found", "content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestErrResponse"}}} } ```

https://github.com/swaggest/openapi-go/blob/v0.2.14/openapi3/_testdata/openapi.json#L98-L99

bug

**Describe the bug** After upgrading from openapi-go v0.2.25 to openapi-go v0.2.30, I noticed that now `google/uuid` is generated as a byte array: ```yaml UuidUUID: # v0.2.25 type: string ``` ```yaml...

Hi there, thanks for this family of modules. I'm using this module to generate schema near existing HTTP handler code (like a minimal version of swaggest/rest). Trying to use oneOf...

If a schema like components: schemas: CreateSomethingRequest: type: object required: - something properties: something: type: number example: 1 x-oapi-codegen-extra-tags: validate: gte=0 was required, how can this x-oapi-codegen-extra-tags field be specified?

Currently if you're using `$ref` in the response headers of OpenAPI3.1 ```yaml paths: /user: put: // ... responses: "404": headers: Cache-Control: $ref: '#/components/headers/CacheControl' ``` you'll receive an error like: ```...

**Describe the bug** If you have []bytes as one of your field in the OAS it is represented as an array At the moment as a work arounf I am...

Updates README example usage instrumenting openapi.OperationContext and stopping using deprecated openapi3.Reflector.SetRequest and openapi3.Reflector.SetJSONResponse, therefore fixing #106.