Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.16.1
-
None
-
Unknown
Description
When I specify a default value in a rest param definition, the default value is not output in the swagger API. For example:
rest().put("{accountNumber}") .param() .name("type") .type(RestParamType.query) .description("The type of account to update.") .defaultValue("MDM") .endParam() .to("direct:foo");
Will output the following Swagger API fragment:
{ "name": "type", "in": "query", "description": "The type of account to update.", "required": true, "type": "string" }