[ 
https://issues.apache.org/jira/browse/CAMEL-22486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-22486.
---------------------------------
    Resolution: Fixed

> camel-yaml-dsl - Should we support map and list notation in parameters
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-22486
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22486
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-yaml-dsl
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.15.0
>
>
> When using YAML DSL then you can configure parameters to EIPs and components 
> as key/value types. This works for string, numbers, booleans etc. But when 
> you need to use a Map or List type (not so many components have these types) 
> then you could use YAML syntax for that. We could then make YAML DSL parse 
> this and build up a Map.
> Its a bit like in Java Endpoint DSL where you can pass in a Map as parameter.
>  
> {code:java}
>  to(plc4j("xxxx").tags(Map.of("tag_1", "XXXX", "tag_2", "YYYY")....){code}
>  
> And in YAML DSL
> {code:java}
> parameters:
>   driver: "xxxxx"
>   tags:
>     Tag_1: "XXXX"
>     Tag_2: "YYYY" {code}



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

Reply via email to