Skip to content

Commit 77cc2f2

Browse files
authored
Merge pull request #151 from lion7/origin/issue-150
Map the binary type to a java.util.File instead of byte[]
2 parents 42f98fc + 69eea5f commit 77cc2f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/io/swagger/codegen/v3/generators/java/AbstractJavaCodegen.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public AbstractJavaCodegen() {
120120
instantiationTypes.put("map", "HashMap");
121121
typeMapping.put("date", "Date");
122122
typeMapping.put("file", "File");
123+
typeMapping.put("binary", "File");
123124

124125
cliOptions.add(new CliOption(CodegenConstants.MODEL_PACKAGE, CodegenConstants.MODEL_PACKAGE_DESC));
125126
cliOptions.add(new CliOption(CodegenConstants.API_PACKAGE, CodegenConstants.API_PACKAGE_DESC));

0 commit comments

Comments
 (0)