diff --git a/README.md b/README.md index 1b4818c..6eb022f 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,14 @@ There is an online version hosted on http://validator.swagger.io. You can also pull a docker image of the validator directly from [DockerHub](https://hub.docker.com/r/swaggerapi/swagger-validator-v2/), e.g.: ``` -docker pull swaggerapi/swagger-validator-v2:v2.1.4 -docker run -it -p 8080:8080 --name swagger-validator-v2 swaggerapi/swagger-validator-v2:v2.1.4 +docker pull swaggerapi/swagger-validator-v2:v2.1.5 +docker run -it -p 8080:8080 --name swagger-validator-v2 swaggerapi/swagger-validator-v2:v2.1.5 ``` 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.1.4 +docker run -it -p 8080:8080 -e "REJECT_LOCAL=false" -e "REJECT_REDIRECT=false" --name swagger-validator-v2 swaggerapi/swagger-validator-v2:v2.1.5 ``` In non docker environments, system properties `rejectLocal` and `rejectRedirect` can be used. diff --git a/pom.xml b/pom.xml index d2a3c43..af150e4 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ swagger-validator war swagger-validator - 2.1.5-SNAPSHOT + 2.1.5 https://github.com/swagger-api/validator-badge 2.2.0 diff --git a/src/main/swagger/swagger.yaml b/src/main/swagger/swagger.yaml index b11c90e..4d799cb 100644 --- a/src/main/swagger/swagger.yaml +++ b/src/main/swagger/swagger.yaml @@ -3,7 +3,7 @@ openapi: 3.0.0 info: title: Swagger Validator Badge description: Parses and validates a Swagger/OpenAPI 2.0 or an OpenAPI 3.x definition - version: 2.1.5-SNAPSHOT + version: 2.1.5 servers: - url: "/" paths: