Skip to content

Commit

Permalink
prepare release 2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Apr 8, 2024
1 parent b07ab21 commit 04b7d25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<artifactId>swagger-validator</artifactId>
<packaging>war</packaging>
<name>swagger-validator</name>
<version>2.1.5-SNAPSHOT</version>
<version>2.1.5</version>
<url>https://github.com/swagger-api/validator-badge</url>
<prerequisites>
<maven>2.2.0</maven>
Expand Down
2 changes: 1 addition & 1 deletion src/main/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 04b7d25

Please sign in to comment.