You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Matt Sicker (JIRA)" <ji...@apache.org> on 2016/01/25 20:01:39 UTC
[jira] [Created] (CAMEL-9532) Default value given in
RestOperationParamDefinition not output in swagger api
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)