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

Claus Ibsen resolved CAMEL-9532.
--------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.16.3
                   2.17.0

Thanks for reporting

> Default value given in RestOperationParamDefinition not output in swagger api
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-9532
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9532
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-swagger
>    Affects Versions: 2.16.1
>            Reporter: Matt Sicker
>            Assignee: Claus Ibsen
>             Fix For: 2.17.0, 2.16.3
>
>
> When I specify a default value in a rest param definition, the default value 
> is not output in the swagger API. For example:
> {code}
> rest().put("{accountNumber}")
>   .param()
>     .name("type")
>     .type(RestParamType.query)
>     .description("The type of account to update.")
>     .defaultValue("MDM")
>   .endParam()
>   .to("direct:foo");
> {code}
> Will output the following Swagger API fragment:
> {code}
> {
> "name": "type",
> "in": "query",
> "description": "The type of account to update.",
> "required": true,
> "type": "string"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to