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

fix: handle circular references #9

Closed XVincentX closed 4 years ago

XVincentX commented 4 years ago

This library cannot handle circular references because the current implementation uses JSON.stringify + JSON.parse to clone the schema. By using a better library, we can overcome the limitation.

github-actions[bot] commented 4 years ago

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

The release is available on:

Your semantic-release bot :package::rocket: