Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19392

Correct template bean definition schema

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.x
    • 3.21.0
    • camel-yaml-dsl
    • 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

          Activity

            People

              igarashitm Tomohisa Igarashi
              igarashitm Tomohisa Igarashi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: