[
https://issues.apache.org/jira/browse/CAMEL-21092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17874279#comment-17874279
]
Aurélien Pupier commented on CAMEL-21092:
-----------------------------------------
The xsd does not allow to add a `routeConfiguration` in `routes` tag. So
changing to routes won't allow to add the same things than before.
I found no xsd containg the `camel` tag. in case we really want/need this camel
tag, we must provide an xsd to know what is allowed and not and to have tooling
to guide users.
> Xml route generated by Camel Jbang does not respect the xsd used
> ----------------------------------------------------------------
>
> Key: CAMEL-21092
> URL: https://issues.apache.org/jira/browse/CAMEL-21092
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 4.7.0
> Reporter: Aurélien Pupier
> Assignee: Aurélien Pupier
> Priority: Major
>
> when using Camel JBang init to genrate an xml file, it genrates:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <camel xmlns="http://camel.apache.org/schema/spring"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=" http://camel.apache.org/schema/spring
> https://camel.apache.org/schema/spring/camel-spring.xsd">
> <route id="route-06280b52-bf6a-4459-91d1-fa081325d4a2">
> <from uri="timer:xml?period=1000"/>
> <setBody>
> <simple>Hello Camel from ${routeId}</simple>
> </setBody>
> <log message="${body}"/>
> </route>
> </camel>
> {noformat}
> which is giving this xsd validation:
> {noformat}
> Cvc-elt.1.a: Cannot Find The Declaration Of Element 'camel'., Line '2',
> Column '199'.
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)