Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.18.1
-
None
-
Unknown
Description
The following YAML fails
- route: from: uri: kamelet:timer-source steps: - log: message: ${body} id: routeId routeConfigurationId: xxxx
Error:
// Some comments here
Unsupported field: routeConfigurationId
in file:route-id.yaml, line 2, column 5:
from:
^
at org.apache.camel.dsl.yaml.deserializers.RouteDefinitionDeserializer.setProperties(RouteDefinitionDeserializer.java:96)
at org.apache.camel.dsl.yaml.deserializers.RouteDefinitionDeserializer.setProperties(RouteDefinitionDeserializer.java:33)
at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.construct(YamlDeserializerBase.java:65)
at org.apache.camel.dsl.yaml.common.YamlDeserializationContext$2.construct(YamlDeserializationContext.java:215)
at org.apache.camel.dsl.yaml.YamlRoutesBuilderLoader$1.configuration(YamlRoutesBuilderLoader.java:229)
at org.apache.camel.builder.RouteConfigurationBuilder.addRouteConfigurationsToCamelContext(RouteConfigurationBuilder.java:77)
at org.apache.camel.impl.engine.AbstractCamelContext.addRoutesConfigurations(AbstractCamelContext.java:1187)
Field is defined in the schema:
https://github.com/apache/camel/blob/a0f8a615a2e794267e8a8f075aa110ec4bcf0e74/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json#L2337