Validate your Swagger JSON/YAML today!
queryConfigEnabled
configuration parameterformat: uri
instead of format: uri-reference
(this is interpreted by validator as a URI Reference aka either a URI or a Relative ReferenceNote: as described in README, #154 introduces the following:
Since version 2.0.2
local and non http/https urls are rejected by default, along with redirects; this is controllable with docker env variables / java system properties:
docker run -it -p 8080:8080 -e "REJECT_LOCAL=false" -e "REJECT_REDIRECT=false" --name swagger-validator-v2 swaggerapi/swagger-validator-v2:v2.0.1
In non docker environments, system properties rejectLocal
and rejectRedirect
can be used.
Major changes:
This release leverages updates in the swagger-parser to provide better feedback to end-users when errors are in a specification. In addition, you can now pull the swagger-validator service from Dockerhub to have a validation service running in seconds!