docs/usage/validate.md
The toolkit has a command to validate swagger specifications for you. It includes a full json-schema validator and adds some extra validations to ensure the spec is valid.
To validate a specification:
Usage:
swagger [OPTIONS] validate [validate-OPTIONS]
validate the provided swagger document against a swagger spec
Application Options:
-q, --quiet silence logs
--output=LOG-FILE redirect logs to file
Help Options:
-h, --help Show this help message
[validate command options]
--skip-warnings when present will not show up warnings upon validation
--stop-on-error when present will not continue validation after critical errors are found
All the rules the validator tool supports:
Rule | Severity