You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "wujimin (JIRA)" <ji...@apache.org> on 2018/07/13 00:42:00 UTC

[jira] [Updated] (SCB-736) generate default value to swagger for primitive type, even there is no defaultValue annotation

     [ https://issues.apache.org/jira/browse/SCB-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

wujimin updated SCB-736:
------------------------
    Description: 
{code:java}
@GetMapping(path = "test")
public String test(int i,  boolean b) {
  return "" + i + b;
}
{code}
request without any query parameter should be ok

must include all primitive types.

  was:
{code:java}
@GetMapping(path = "test")
public String test(int i,  boolean b) {
  return "" + i + b;
}
{code}
request without any query parameter should be ok

also should consider all primitive type.


> generate default value to swagger for primitive type, even there is no defaultValue annotation
> ----------------------------------------------------------------------------------------------
>
>                 Key: SCB-736
>                 URL: https://issues.apache.org/jira/browse/SCB-736
>             Project: Apache ServiceComb
>          Issue Type: Task
>          Components: Java-Chassis
>            Reporter: wujimin
>            Assignee: sukesh
>            Priority: Major
>
> {code:java}
> @GetMapping(path = "test")
> public String test(int i,  boolean b) {
>   return "" + i + b;
> }
> {code}
> request without any query parameter should be ok
> must include all primitive types.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)