You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/09/24 18:55:00 UTC
[jira] [Resolved] (CAMEL-12805) camel-restdsl-swagger-plugin
doesn't convert integer default value to string
[ https://issues.apache.org/jira/browse/CAMEL-12805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-12805.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.23.0
2.22.2
2.21.3
Thanks for reporting
> camel-restdsl-swagger-plugin doesn't convert integer default value to string
> ----------------------------------------------------------------------------
>
> Key: CAMEL-12805
> URL: https://issues.apache.org/jira/browse/CAMEL-12805
> Project: Camel
> Issue Type: Bug
> Components: tooling
> Affects Versions: 2.21.0
> Reporter: Jochen Cordes
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 2.21.3, 2.22.2, 2.23.0
>
>
> 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.
>
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)