Yelp / fuzz-lightyear

A pytest-inspired, DAST framework, capable of identifying vulnerabilities in a distributed, micro-service ecosystem through chaos engineering testing and stateful, Swagger fuzzing.
Other
205 stars 25 forks source link

Support yaml swagger schema in`--schema` #39

Closed OiCMudkips closed 4 years ago

OiCMudkips commented 4 years ago

Before, the --schema flag only allowed json files. This change makes it so that the --schema flag can accept yaml files. We now use pyyaml to load the yaml file as a python dict and pass the dict to bravado. This is the same approach as JSON files.

If a file doesn't have a json, yaml or yml file extension, we'll try to load the file as json and yaml, and only raise an exception if the file can't be loaded either way.