Skip to content

Commit

Permalink
Merge pull request #18 from swagger-api/develop
Browse files Browse the repository at this point in the history
Merged from develop
  • Loading branch information
fehguy committed Mar 4, 2015
2 parents 8935bed + 2716b84 commit 08b37f9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/swagger-compat-spec-parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<parent>
<groupId>io.swagger</groupId>
<artifactId>swagger-parser-project</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<relativePath>../..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId>
<artifactId>swagger-compat-spec-parser</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>jar</packaging>
<name>swagger-compat-spec-parser</name>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ else if(ParamType.FORM.equals(param.getParamType())) {

output.setName(param.getName());
output.setDescription(param.getDescription());
output.setRequired(param.getRequired());
if(param.getRequired() != null)
output.setRequired(param.getRequired());

Property property = null;
String type = param.getType() == null ? null : param.getType().toString();
Expand Down Expand Up @@ -264,6 +265,12 @@ public Property propertyFromTypedObject(ExtendedTypedObject obj) {
if("array".equals(type)) {
ArrayProperty am = new ArrayProperty();
Items items = obj.getItems();
if(items == null) {
System.out.println("Error! Missing array type for property! Assuming `object` -- please fix your spec");
Json.prettyPrint(obj);
items = new Items();
items.setType("object");
}
type = items.getType() == null ? null : items.getType().toString();
format = items.getFormat() == null ? null : items.getFormat().toString();

Expand Down
4 changes: 2 additions & 2 deletions modules/swagger-parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<parent>
<groupId>io.swagger</groupId>
<artifactId>swagger-parser-project</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<relativePath>../..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId>
<artifactId>swagger-parser</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>jar</packaging>
<name>swagger-parser</name>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId>
<artifactId>swagger-parser-project</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>pom</packaging>
<name>swagger-parser-project</name>
<developers>
Expand Down

0 comments on commit 08b37f9

Please sign in to comment.