liubao68 commented on a change in pull request #1907:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1907#discussion_r464915999



##########
File path: 
swagger/swagger-generator/generator-springmvc/src/main/java/org/apache/servicecomb/swagger/generator/springmvc/processor/annotation/RequestPartAnnotationProcessor.java
##########
@@ -56,11 +57,34 @@ public HttpParameterType getHttpParameterType(RequestPart 
parameterAnnotation) {
   @Override
   public void fillParameter(Swagger swagger, Operation operation, 
FormParameter formParameter, Type type,
       RequestPart requestPart) {
-    Property property = new FileProperty();
-    if (TypeFactory.defaultInstance().constructType(type).isContainerType()) {
-      property = new ArrayProperty(new FileProperty());
-    }
+    Property property = resolveParamProperty(type);

Review comment:
       actually I mean fillParameter can call super.fillParameter, because 
jaxrs works fine by doing this. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to