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

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

Fix release scripts, fix windows test bug, add support for derefencing definitions #30

Closed jonluca closed 2 years ago

jonluca commented 2 years ago

Fixes release scripts and cleans up some types

jonluca commented 2 years ago

One thing that's interesting here is that we had a bit of undefined behavior originally. If a schema had a definitions property (which is valid in JSONSchema), and only some of those entries were referenced, only the referenced ones were converted, leaving the schema in a broken invalid state.

This PR adds a new property (which is true by default, but can be disabled) to convert these definitions as well - convertUnreferencedDefinitions

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 2.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: