Details
Description
When generating a RouteBuilder from a swagger that defines default parameter values of type integer, there is no conversion to a string when setting it:
Swagger:
"limit":
{ "name":"limit", "in":"query", "type":"integer", "minimum":1, "default":20, "description":"the limit of the results for the collections query" },
RouteBuilder:
.param()
.name("limit")
.type(RestParamType.query)
.dataType("integer")
.defaultValue(20)
.required(false)
.description("the limit of the results for the collections query")
.endParam()
defaultValue only accepts parameters of type string and therefore the generated code can't be compiled and needs to be corrected manually.