swagger-cli distributed as a Docker container.
$ ./swagger-cli.sh validate testfiles/petstore.yaml
testfiles/petstore.yaml is validOr
$ docker run --rm -v ${PWD}:/spec swagger-cli validate testfiles/petstore.yamlThis project uses bats for testing. To install bats:
$ sudo apt install batsTo build:
$ make dockerThis project uses bats for testing. To run the tests:
$ sudo apt install bats
$ bats test.bats
✓ validate petstore.yaml
1 test, 0 failures