instrumenta / openapi2jsonschema

Convert OpenAPI definitions into JSON schemas for all types in the API
Other
226 stars 87 forks source link

Only works with /components/schemas #39

Open bj-mcduck opened 4 years ago

bj-mcduck commented 4 years ago

I'm using Stoplight to edit my openapi spec and that allows me to have separate files for my models. When I use their tool to download it as a combined spec the references end up getting put in the first request that asks for it and then every spot afterward references that.

When using openapi2jsonschema it fails and is unable to process because none of the models are in the /components/schemas location.

Not sure if there'd be some way of making that configurable or something?