pre-commit hook to validate swagger specs
Python
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
check_swagger
.gitignore
.pre-commit-config.yaml
.pre-commit-hooks.yaml
README.md
hooks.yaml
setup.py

README.md

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/jstewmon/check-swagger
  sha: v0.1.4
  hooks:
  - id: check-swagger

Options:

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

Standalone Usage