Skip to content

Commit a07eb3b

Browse files
committed
Missing multipart (form data) imports.
Swagger files that declare "in: formData" parameters will result in API class that cannot be compiled due to the usage of "@multipart" annotations in method signatures.
1 parent 6ecf083 commit a07eb3b

File tree

1 file changed

+2
-0
lines changed
  • modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf

1 file changed

+2
-0
lines changed

modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf/api.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ package {{package}};
66
import javax.ws.rs.*;
77
import javax.ws.rs.core.Response;
88

9+
import org.apache.cxf.jaxrs.ext.multipart.*;
10+
911
@Path("/")
1012
public interface {{classname}} {
1113
{{#operations}}

0 commit comments

Comments
 (0)