[
https://issues.apache.org/jira/browse/CAMEL-17094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429739#comment-17429739
]
Luca Burgazzoli commented on CAMEL-17094:
-----------------------------------------
it can but would diverge from other dsl and would probably require some changes
to the model as the code is auto generated so we need to estimate the impact
> camel-yaml-dsl - Unification of DSL (Choice When clause)
> --------------------------------------------------------
>
> Key: CAMEL-17094
> URL: https://issues.apache.org/jira/browse/CAMEL-17094
> Project: Camel
> Issue Type: Improvement
> Components: camel-yaml-dsl
> Reporter: Marat Gubaidullin
> Priority: Major
>
> All DSLs in *steps* array start with DSL name field, ex: *filter* and *to*
> {code:yaml}
> steps:
> - filter:
> simple: "${body}"
> steps:
> - to: "mock:filter"
> - to: "mock:result"
> {code}
> but in *when* array WhenDefinition steps: *simple* and *expression*
> {code:yaml}
> when:
> - simple: "${body.size()} == 1"
> steps:
> - to: "log:when-a"
> - expression:
> simple: "${body.size()} == 2"
> steps:
> - to: "log:when-b"
> {code}
> Could we unified YAML DSL for arrays of Definitions? Ex.:
> {code:yaml}
> when:
> - when:
> expression:
> simple: "${body.size()} == 2"
> steps:
> - to: "log:when-a"
> - when:
> expression:
> simple: "${body.size()} == 2"
> steps:
> - to: "log:when-b"
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)