Skip to content

jstewmon/check-swagger

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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

About

pre-commit hook to validate swagger specs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages