Skip to content

Commit

Permalink
Merge pull request #209 from swagger-api/fix-infer-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma authored Oct 21, 2022
2 parents 695155b + b7984cc commit 0f0fcd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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.0</version>
<version>2.1.1</version>
<prerequisites>
<maven>2.2.0</maven>
</prerequisites>
Expand Down Expand Up @@ -278,7 +278,7 @@
<snakeyaml.version>1.33</snakeyaml.version>
<httpclient-version>4.5.13</httpclient-version>
<maven-plugin-version>1.0.0</maven-plugin-version>
<swagger-parser-version>2.1.5</swagger-parser-version>
<swagger-parser-version>2.1.6</swagger-parser-version>
<swagger-inflector-version>2.0.8</swagger-inflector-version>
<jetty-version>9.4.18.v20190429</jetty-version>
<logback-version>1.2.10</logback-version>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/io/swagger/handler/ValidatorController.java
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,6 @@ private SwaggerParseResult readOpenApi(
p.setAllowEmptyString(Boolean.TRUE.equals(allowEmptyStrings));
if (Boolean.FALSE.equals(allowEmptyStrings)) p.setAllowEmptyString(allowEmptyStrings);
p.setLegacyYamlDeserialization(Boolean.TRUE.equals(legacyYamlDeserialization));
p.setInferSchemaType(Boolean.TRUE.equals(inferSchemaType));
if (Boolean.FALSE.equals(inferSchemaType)) p.setInferSchemaType(inferSchemaType);
SwaggerParseResult result = parser.readContents(content, null, p, location);
clean(result.getOpenAPI());
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.0
version: 2.1.1
servers:
- url: "/"
paths:
Expand Down

0 comments on commit 0f0fcd7

Please sign in to comment.