Provide command-line interface#109
Conversation
sjaensch
left a comment
There was a problem hiding this comment.
Thanks for your contribution! Please also check the output of the travis run and fix the issues pre-commit mentioned. You can run make install-hooks to make sure those hooks will be run when you commit code.
| pytest | ||
| jsonschema | ||
| pyyaml | ||
| six |
There was a problem hiding this comment.
These requirements are already listed in setup.py, no need to add them here.
There was a problem hiding this comment.
Apparently, the correct way is to put a line with a single . so that pip install -r requirements-dev.txt will automatically look in setup.py as well. I've pushed a new version reflecting this.
f22cae4 to
0b1cf49
Compare
This makes it possible to call the script as follows: python -m swagger_spec_validator "http://petstore.swagger.io/v2/swagger.json"
|
See #105 which includes some basic tests, an entrypoint, documentation, and processing of the raised exception to print the message rather than dumping a traceback. |
Makes the following possible:
python -m swagger_spec_validator "http://petstore.swagger.io/v2/swagger.json"