Skip to content

Commit f1892c8

Browse files
committed
Map the binary format to Resource
1 parent cb6d034 commit f1892c8

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/SpringCodegen.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ public void processOpts() {
273273
}
274274

275275
typeMapping.put("file", "Resource");
276+
typeMapping.put("binary", "Resource");
276277
importMapping.put("Resource", "org.springframework.core.io.Resource");
277278

278279
if (useOptional) {

0 commit comments

Comments
 (0)