openapi-contrib / openapi-schema-to-json-schema

Due to the OpenAPI v3.0 and JSON Schema discrepancy, you can use this JS library to convert OpenAPI Schema objects to proper JSON Schema.
https://www.npmjs.com/package/@openapi-contrib/openapi-schema-to-json-schema
MIT License
242 stars 20 forks source link

OpenAPI 3.1 and JSON Schema Draft 2019-09 Support #13

Closed jchook closed 4 years ago

jchook commented 4 years ago

Any plans to support the very welcome upcoming changes to OpenAPI?

philsturgeon commented 4 years ago

We wont need to, OpenAPI Schema Objects and JSON Schema will be the same thing, so there's no need to convert anything. 🥳

jchook commented 4 years ago

Ok! I read this

Schema Object The Schema Object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. This object is a superset of the JSON Schema Specification Draft 2019-09.

and thought they may have added more validation atop JSON Schema.

Thanks