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

YAML DSL issue with variables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.4.0, 4.4.1, 4.5.0
    • 4.4.2, 4.6.0
    • camel-yaml-dsl
    • None
    • Unknown

    Description

      The following code returns error:

      - route:
          from:
            uri: "direct:start"
            variableReceive: "myKey"
            steps:
              - transform:
                  simple: "Bye ${body}"
              - to: "mock:foo"
              - setBody:
                  variable: "myKey"
              - to: "mock:result"
      
      Unsupported field: variableReceive
       in file:test.camel.yaml, line 4, column 24:
                variableReceive: "myKey"
                                 ^
      
              at org.apache.camel.dsl.yaml.common.YamlSupport.creteEndpointUri(YamlSupport.java:182)
              at org.apache.camel.dsl.yaml.deserializers.FromDefinitionDeserializer.construct(FromDefinitionDeserializer.java:84)
              at org.apache.camel.dsl.yaml.common.YamlDeserializationContext.lambda$resolve$0(YamlDeserializationContext.java:157)
              at org.apache.camel.dsl.yaml.common.YamlDeserializerSupport.asType(YamlDeserializerSupport.java:344)
              at org.apache.camel.dsl.yaml.deserializers.RouteDefinitionDeserializer.setProperties(RouteDefinitionDeserializer.java:139)
              at org.apache.camel.dsl.yaml.deserializers.RouteDefinitionDeserializer.setProperties(RouteDefinitionDeserializer.java:34)
              at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.construct(YamlDeserializerBase.java:66)
              at org.apache.camel.dsl.yaml.common.YamlDeserializationContext.lambda$resolve$1(YamlDeserializationContext.java:198)
              at org.apache.camel.dsl.yaml.YamlRoutesBuilderLoader$1.configure(YamlRoutesBuilderLoader.java:150)
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: