Tomohisa Igarashi created CAMEL-19699:
-----------------------------------------

             Summary: camel-yaml-dsl: schema: Express languages/dataformats are 
mutually exclusive 
                 Key: CAMEL-19699
                 URL: https://issues.apache.org/jira/browse/CAMEL-19699
             Project: Camel
          Issue Type: Task
          Components: camel-yaml-dsl
            Reporter: Tomohisa Igarashi
            Assignee: Luca Burgazzoli


For example with dataformats, this is syntactically allowed
{code:yaml}
- 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"
{code}

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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to