/check-swagger

pre-commit hook to validate swagger specs

Primary LanguagePython

check-swagger

pre-commit hook to validate swagger specs, leveraging Yelp's swagger_spec_validator.

Applies to filenames matching the pattern .*swagger.*\.(json|yaml|yml).

Usage

pre-commit

Add the following entry to .pre-commit-config.yaml:

- repo: git://github.com/xqliang/check-swagger
  rev: v0.1.5
  hooks:
  - id: check-swagger

Options:

  • -x PATTERN, --exclude PATTERN filename patterns to exclude from validation.

Standalone Usage