File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ public JavaClientCodegen() {
83
83
);
84
84
instantiationTypes .put ("array" , "ArrayList" );
85
85
instantiationTypes .put ("map" , "HashMap" );
86
+ typeMapping .put ("date" , "Date" );
87
+ typeMapping .put ("file" , "File" );
86
88
87
89
cliOptions .add (new CliOption (CodegenConstants .MODEL_PACKAGE , CodegenConstants .MODEL_PACKAGE_DESC ));
88
90
cliOptions .add (new CliOption (CodegenConstants .API_PACKAGE , CodegenConstants .API_PACKAGE_DESC ));
@@ -488,7 +490,8 @@ public String getSwaggerType(Property p) {
488
490
if (typeMapping .containsKey (swaggerType )) {
489
491
type = typeMapping .get (swaggerType );
490
492
if (languageSpecificPrimitives .contains (type ) || type .indexOf ("." ) >= 0 ||
491
- type .equals ("Map" ) || type .equals ("List" )) {
493
+ type .equals ("Map" ) || type .equals ("List" ) ||
494
+ type .equals ("File" ) || type .equals ("Date" )) {
492
495
return type ;
493
496
}
494
497
} else {
You can’t perform that action at this time.
0 commit comments