Skip to content

WIP: Precommit

Karl R. Wurst requested to merge precommit into main

This works for running swagger validate as a pre-commit hook. However, it checks the file whether it is staged or not. That means it will prevent a commit with an invalid spec, even if we are not trying to commit the spec file!

We need to figure out a way to have the validator check only staged files.

@gciampa @jeffersonbourguignon @StoneyJackson

Merge request reports