Skip to content

Commit f3b0477

Browse files
authored
Merge pull request #537 from sonOfRa/spring-resource
[Spring] Map the binary format to Resource
2 parents b5ef367 + 1b0ca7d commit f3b0477

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)