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

camel-yaml-dsl: schema: fix routeConfiguration/onException

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.1.0
    • camel-yaml-dsl
    • None
    • Unknown

    Description

      According to this doc - https://camel.apache.org/manual/route-configuration.html#_route_configuration_in_yaml

      `routeConfiguration/onException` is written as following in YAML DSL, having `onException` twice. Runtime (deserializer) accepts this.

      - routeConfiguration: 
           onException: 
             - onException: 
                  handled: 
                    constant: "true"
      

      However the YAML DSL schema defines as following, which causes an error at runtime.

      - routeConfiguration: 
           onException: 
              - handled: 
                   constant: "true"
      

      Fix the schema to align with the runtime behavior. Note that this array structure is irregular compared to the others such as `when` under `choice` which doesn't have a duplicated nest. We'd need some special handling for `routeConfiguration`.

      It's same for `onCompletion`, `intercept`, `interceptFrom` and `interceptSendToEndpoint`. Fix all of these.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: