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 2026/05/21 08:00:00 UTC
[jira] [Resolved] (CAMEL-23593) camel validate normalize does not handle REST DSL, routeConfiguration, and beans-only files
[ https://issues.apache.org/jira/browse/CAMEL-23593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-23593.
---------------------------------
Resolution: Fixed
> camel validate normalize does not handle REST DSL, routeConfiguration, and beans-only files
> -------------------------------------------------------------------------------------------
>
> Key: CAMEL-23593
> URL: https://issues.apache.org/jira/browse/CAMEL-23593
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.21.0
>
>
> The {{camel validate normalize}} command cannot normalize several YAML DSL constructs:
> * *REST DSL* — REST definitions are converted into regular routes at runtime, so the dump output loses the original REST DSL structure. Affects any file using {{- rest:}} blocks.
> * *routeConfiguration* — Files using {{- routeConfiguration:}} with {{onException}} produce {{- routeConfigurations: \{\}}} in the output, losing the configuration content entirely. The onException gets incorrectly inlined into routes.
> * *Beans-only files* — Files containing only {{- beans:}} (no routes) fail because the Run command needs at least one route to start up.
> Examples that could not be normalized in camel-jbang-examples:
> - {{rest-api/rest-api.camel.yaml}} (REST DSL)
> - {{openapi/server/petstore.camel.yaml}} (REST DSL)
> - {{smart-log-analyzer/ui-console/rest-api.camel.yaml}} (REST DSL)
> - {{keycloak-introspection-rest/rest-api.camel.yaml}} (REST DSL + beans)
> - {{keycloak-security-rest/rest-api.camel.yaml}} (REST DSL + beans)
> - {{edi-x12-as2/camel/edi-x12-as2.camel.yaml}} (routeConfiguration)
> - {{routes/beans.yaml}} (beans-only)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)