[
https://issues.apache.org/jira/browse/CAMEL-19699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17750457#comment-17750457
]
Tomohisa Igarashi commented on CAMEL-19699:
-------------------------------------------
Interestingly some of the model catalog files have those `oneOf` condition
https://github.com/apache/camel/blob/2af409ce55be5f0eaf17a81c19da3c9ae49202c2/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/dataFormats.json#L15
https://github.com/apache/camel/blob/2af409ce55be5f0eaf17a81c19da3c9ae49202c2/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/when.json#L15
> 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
> Priority: Major
>
> 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)