pre-commit hook to validate swagger specs, leveraging Yelp's swagger_spec_validator.
Applies to filenames matching the pattern .*swagger.*\.(json|yaml|yml).
Add the following entry to .pre-commit-config.yaml:
- repo: git://github.com/jstewmon/check-swagger
sha: v0.1.4
hooks:
- id: check-swaggerOptions:
-x PATTERN, --exclude PATTERNfilename patterns to exclude from validation.