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 2021/06/03 05:23:00 UTC
[jira] [Resolved] (CAMEL-16665) camel-rest-openapi - StackOverflow
loading generated long route definitions
[ https://issues.apache.org/jira/browse/CAMEL-16665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-16665.
---------------------------------
Resolution: Information Provided
> camel-rest-openapi - StackOverflow loading generated long route definitions
> ---------------------------------------------------------------------------
>
> Key: CAMEL-16665
> URL: https://issues.apache.org/jira/browse/CAMEL-16665
> Project: Camel
> Issue Type: Bug
> Components: camel-rest-openapi
> Reporter: Ruben Romero Montes
> Priority: Minor
> Attachments: nohup.out
>
>
> When using the camel-restdsl-openapi-plugin with a rather long and complex api like this one: [BIAN_CustomerOffer|https://raw.githubusercontent.com/bian-official/public/main/release9.1/semantic-apis/swaggers/CustomerOffer.json]
> The generated routeBuilder class contains one `rest()` method including all the route definitions. This one has over 40 endpoints and the build is causing a StackOverflow error.
> When splitting the route definitions into multiple files or just `rest()` calls, the problem is gone.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)