Skip to content

Commit 7a1e140

Browse files
authored
Merge pull request #322 from swagger-api/templates_tweaks
Templates tweaks
2 parents 413f0e2 + 6392aca commit 7a1e140

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation
20102010

20112011
if ("application/x-www-form-urlencoded".equalsIgnoreCase(contentType) || "multipart/form-data".equalsIgnoreCase(contentType)) {
20122012
final CodegenContent codegenContent = new CodegenContent(contentType);
2013-
codegenContent.getVendorExtensions().put(CodegenConstants.IS_FORM_EXT_NAME, Boolean.TRUE);
2013+
//todo: uncomment line once changes on codegen repo has been merged codegenContent.getContentExtensions().put(CodegenConstants.IS_FORM_EXT_NAME, Boolean.TRUE);
20142014

20152015
final Map<String, Schema> propertyMap = schema.getProperties();
20162016
boolean isMultipart = contentType.equalsIgnoreCase("multipart/form-data");

src/main/resources/handlebars/JavaJaxRS/cxf/apiServiceImpl.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import org.apache.cxf.jaxrs.model.wadl.DocTarget;
1515

1616
import org.apache.cxf.jaxrs.ext.multipart.*;
1717

18-
import io.swagger.annotations.Api;
1918
{{#useSpringAnnotationConfig}}
2019
import org.springframework.stereotype.Service;
2120
{{/useSpringAnnotationConfig}}

0 commit comments

Comments
 (0)