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_r209494618
 
 

 ##########
 File path: 
demo/demo-jaxrs/jaxrs-server/src/main/java/org/apache/servicecomb/demo/jaxrs/server/JaxRSDefaultValues.java
 ##########
 @@ -88,4 +88,34 @@ public String queryPackages(HttpServletRequest httpRequest,
     return "" + appType;
   }
 
+  @Path("/javaprimitive1")
+  @POST
+  @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
+  public String jaxRsJavaPrim1(@FormParam("a") int a, @DefaultValue("bobo") 
@FormParam("b") String b) {
 
 Review comment:
   Fixed

----------------------------------------------------------------
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