Nick-The-Uncharted commented on issue #1688: [SCB-1828] Support @JSONVIEW 
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1688#issuecomment-608188541
 
 
   > > 
org.apache.servicecomb.swagger.generator.core.AbstractOperationGenerator#fillBodyParameter
 里调用的readAsProperty(type)是不是也应该改成 readAsProperty(type, JsonView), 
org.apache.servicecomb.swagger.generator.core.processor.annotation.AnnotationUtils#generateResponseProperty
 同理~
   > 
   > 遗漏了一个场景.
   > 
   > ```java
   >   @PostMapping("/postUser")
   >   public String userWithDefault(@RequestBody 
@JsonView(Person.Summary.class) Person person) {
   >     return person.toString();
   >   }
   > ```
   
   这个如果不考虑swagger问题就不大 考虑swagger生成的话还得补上, 当前响应能够带jsonView感觉可以满足90%的使用场景了~~

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to