Yelp / swagger_spec_validator

Other
104 stars 71 forks source link

Attempt to load relative references as YAML if JSON fails #56

Closed patrickw276 closed 7 years ago

patrickw276 commented 8 years ago

Wrap jsonschema.RefResolver.resolve_remote to attempt to load files as yaml if they can't be loaded as json. This allows validating specs split up across multiple files to include .yaml files.