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

camel-yaml-dsl: schema: Express languages/dataformats are mutually exclusive

    XMLWordPrintableJSON

Details

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

    Description

      For example with dataformats, this is syntactically allowed

      - from: 
          uri: "timer:test"
          parameters: 
            period: 3000
          steps: 
          - set-body: 
              simple: "Hello World"
          - marshal: 
              json: 
                library: Jackson
              jaxb: 
                contextPath: org.apache.camel.model
          - to: 
              uri: "log:test"
      

      Can we prohibit this through YAML DSL schema, possibly with `oneOf`?

      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: