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

camel-yaml-dsl - Error handler should be oneOf

    XMLWordPrintableJSON

Details

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

    Description

      In this class org.apache.camel.dsl.yaml.deserializers.RouteConfigurationDefinitionDeserializer

      Then there is an option for "error-handler" which refers to the 5+ error handlers we have in Camel.

      In the schema then it looks like its an array where you can use 0..n of them.

      But the realitiy is that you can choose to use only one of them. So either you use default error handler, or you use dead letter channel, and not both of them.

      The new oneOf in the @YamlProperty may be useful if we can make it generate correct yaml schema output. Or we need to adjust the generator source to make this work.

      Attachments

        Issue Links

          Activity

            People

              igarashitm Tomohisa Igarashi
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: