openapi_first
openapi_first copied to clipboard
Build your API on top of OpenAPI. Ensure that your implementation follows exactly your API description.
When i get errors about this and that field not being of the right type. I really need to see what the response actually was. Trying to write a log...
Ran into an issue with `oneOf` unions, but _only_ when using a `discriminator` property. I am not sure if this is an `openapi_first` issue or a `json_schemer` issue, so I'd...
I've stumbled on this error: My API responds with an binary stream (file attachment). In my openapi.yml the response is described like this: ``` ... content: "*/*": schema: type: string...
Being able to (optionally) validate the structure of a given OpenAPI file would be handy. Solution idea: Make use of the meta schemas [included in json_schemer](https://github.com/davishmcclurg/json_schemer?tab=readme-ov-file#openapi)
See https://spec.openapis.org/oas/latest.html#fixed-fields-for-use-with-content-0
Given an Openapi definition like ```yml paths: /foo: get: parameters: - name: ids in: query style: form explode: true schema: type: array items: $ref: ../components/schemas/id.yml uniqueItems: true ``` `json_schemer` will...
We have a schema like: ```yaml # openapi.yaml openapi: "3.0.2" info: version: 1.0.0 title: Swagger Petstore license: name: MIT servers: - url: http://petstore.swagger.io/v1 paths: /pets: get: summary: Info for a...
```ruby Benchmark.memory do |x| x.report { OpenapiFirst.load('../spec/data/large.yaml') } end ``` ```sh 26.563M memsize ( 4.364M retained) 268.592k objects ( 38.065k retained) 50.000 strings ( 50.000 retained) ``` I see several...
Or should it not? If the request definition specifies "application/json" as the content-type, an in coming request has content-type "application/vnd.api+json" should be accepted.
tbd Related to https://github.com/davishmcclurg/json_schemer/issues/213