File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/main/java/com/decision/swagger/codegen/typescript/angular2 Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,15 @@ public String getSwaggerType(Property p) {
63
63
}
64
64
65
65
private String addModelPrefix (String swaggerType ) {
66
- String type = null ;
67
- if (typeMapping .containsKey (swaggerType )) {
68
- type = typeMapping .get (swaggerType );
69
- if (languageSpecificPrimitives .contains (type ))
70
- return type ;
71
- } else
72
- type = "model." + swaggerType ;
66
+ String type = swaggerType ;
67
+ if (!swaggerType .startsWith ("Array" )) {
68
+ if (typeMapping .containsKey (swaggerType )) {
69
+ type = typeMapping .get (swaggerType );
70
+ if (languageSpecificPrimitives .contains (type ))
71
+ return type ;
72
+ } else
73
+ type = "model." + swaggerType ;
74
+ }
73
75
return type ;
74
76
}
75
77
You can’t perform that action at this time.
0 commit comments