Skip to content

Commit

Permalink
Merge pull request #322 from swagger-api/templates_tweaks
Browse files Browse the repository at this point in the history
Templates tweaks
  • Loading branch information
HugoMario authored Mar 5, 2019
2 parents 413f0e2 + 6392aca commit 7a1e140
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2010,7 +2010,7 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation

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

final Map<String, Schema> propertyMap = schema.getProperties();
boolean isMultipart = contentType.equalsIgnoreCase("multipart/form-data");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import org.apache.cxf.jaxrs.model.wadl.DocTarget;

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

import io.swagger.annotations.Api;
{{#useSpringAnnotationConfig}}
import org.springframework.stereotype.Service;
{{/useSpringAnnotationConfig}}
Expand Down

0 comments on commit 7a1e140

Please sign in to comment.