diff --git a/README.md b/README.md index 9272cf4c8f..ac6c7e910b 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ You can include this library from Sonatype OSS for SNAPSHOTS, or Maven central f io.swagger swagger-parser - 1.0.44 + 1.0.45 ``` @@ -129,7 +129,7 @@ To add swagger parsing support for older versions of swagger, add the `compat` m io.swagger swagger-compat-spec-parser - 1.0.44 + 1.0.45 ``` diff --git a/modules/swagger-compat-spec-parser/pom.xml b/modules/swagger-compat-spec-parser/pom.xml index a21f9d08f3..3deb170890 100644 --- a/modules/swagger-compat-spec-parser/pom.xml +++ b/modules/swagger-compat-spec-parser/pom.xml @@ -4,7 +4,7 @@ io.swagger swagger-parser-project - 1.0.45-SNAPSHOT + 1.0.45 ../.. 4.0.0 diff --git a/modules/swagger-parser/pom.xml b/modules/swagger-parser/pom.xml index db3d53f9f6..f8cf818db9 100644 --- a/modules/swagger-parser/pom.xml +++ b/modules/swagger-parser/pom.xml @@ -4,7 +4,7 @@ io.swagger swagger-parser-project - 1.0.45-SNAPSHOT + 1.0.45 ../.. 4.0.0 diff --git a/modules/swagger-parser/src/main/java/io/swagger/parser/util/SwaggerDeserializer.java b/modules/swagger-parser/src/main/java/io/swagger/parser/util/SwaggerDeserializer.java index 7be75ddfe6..d0f39da126 100644 --- a/modules/swagger-parser/src/main/java/io/swagger/parser/util/SwaggerDeserializer.java +++ b/modules/swagger-parser/src/main/java/io/swagger/parser/util/SwaggerDeserializer.java @@ -912,7 +912,7 @@ public Model definition(ObjectNode node, String location, ParseResult result) { if(propertyNode.getNodeType().equals(JsonNodeType.OBJECT)) { ObjectNode on = (ObjectNode) propertyNode; Property property = property(on, location, result); - if (property != null) { + if(property != null) { if ("array".equals(property.getType()) && !(property instanceof ArrayProperty && ((ArrayProperty) property).getItems() != null)) { result.missing(location, "items"); } diff --git a/pom.xml b/pom.xml index 3d98bd62c5..5395ed755e 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ 4.0.0 io.swagger swagger-parser-project - 1.0.45-SNAPSHOT + 1.0.45 pom swagger-parser-project