Matt Sicker created CAMEL-9532:
----------------------------------

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


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