Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.x
-
None
-
Unknown
Description
The template bean, which is used by Kamelet, is out of sync between schema and actually used deserializer/definition
https://github.com/apache/camel/blob/camel-3.x/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/main/java/org/apache/camel/dsl/yaml/deserializers/RouteTemplateDefinitionDeserializer.java#L48
https://github.com/apache/camel/blob/camel-3.x/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/main/java/org/apache/camel/dsl/yaml/deserializers/RouteTemplateDefinitionDeserializer.java#L88
NamedBeanDefinition supports
properties: propName: propValue objProp: objPropProp: objPropPropVal
But the template bean actually supports following
property: - key: propName value: propValue
and
properties: propName: propValue
In order to reflect the actual behavior in YAML DSL JSON schema, we need to change from `NamedBeanDefinition` to `RouteTemplateBeanDefinition` and `TemplatedRouteBeanDefinition` in the annotation.
Attachments
Issue Links
- relates to
-
CAMEL-19386 Support object property on template bean
- Resolved
- links to