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

camel-yaml-dsl - Unsupported field: routeConfigurationId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.18.1
    • 3.18.2, 3.19.0
    • camel-yaml-dsl
    • 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

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            marat.gubaidullin@gmail.com Marat Gubaidullin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: