instrumenta / openapi2jsonschema

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

Use separate json loader to be able to deal with jsons that use tabs for indenting #31

Open klmz opened 4 years ago

klmz commented 4 years ago

This should solve issue #30 . Before only the YAML loader was used but since that doesn't handle JSON that is indented with tabs, it first tries to load it as a JSON and if that fails as a YAML.

It also includes some changes related to formatting (to make the test pass).