maheshrajus commented on a change in pull request #863: [SCB-736] generate 
default value to swagger for primitive type when there is no defaultValue 
annotation
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/863#discussion_r208807621
 
 

 ##########
 File path: 
demo/demo-springmvc/springmvc-server/src/main/java/org/apache/servicecomb/demo/springmvc/server/SpringMvcDefaultValues.java
 ##########
 @@ -64,4 +64,28 @@ public String query3(@RequestParam("a") @Min(value = 20) 
int a, @RequestParam("b
     return "Hello " + a + b;
   }
 
+  @PostMapping("/javaprimitive1")
+  public String springJavaPrim1(@RequestParam(name = "a") int a,
 
 Review comment:
   yes,you are correct when we made @RequestParam(name="a", requrired=true) 
then also in swagger file it is showing required field is false. Looks to be 
defect in swagger generation module about springmvc.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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