Skip to content

Commit

Permalink
fix object declaration in model
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Apr 9, 2018
1 parent 7ca8edb commit b5f0b24
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion bin/typescript-angular-v2-petstore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l typescript-angular -o samples/client/petstore/typescript-angular-v2/default --additional-properties ngVersion=2"
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l typescript-angular -o samples/client/petstore/typescript-angular-v2/default --additional-properties ngVersion=2 $@"

java $JAVA_OPTS -jar $executable $ags
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ public boolean isDataTypeFile(final String dataType) {
public String getTypeDeclaration(Schema p) {
if (p instanceof FileSchema) {
return "Blob";
} else if (!StringUtils.isEmpty(p.get$ref())) {
return "any";
} else {
return super.getTypeDeclaration(p);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ public String getTypeDeclaration(Schema p) {
return "any";
} else if (p instanceof BinarySchema) {
return "any";
} else if (!StringUtils.isEmpty(p.get$ref())) { // model
return "any";
} else {
return super.getTypeDeclaration(p);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ public boolean isDataTypeFile(final String dataType) {
public String getTypeDeclaration(Schema p) {
if (p instanceof FileSchema) {
return "Blob";
} else if (!StringUtils.isEmpty(p.get$ref())) {
return "any";
} else {
return super.getTypeDeclaration(p);
}
Expand Down

0 comments on commit b5f0b24

Please # to comment.