[
https://issues.apache.org/jira/browse/CAMEL-17479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17474625#comment-17474625
]
Claus Ibsen commented on CAMEL-17479:
-------------------------------------
Backported as its needed by kamelets
> camel-core - Configuring properties with optional syntax in value on beans
> also
> -------------------------------------------------------------------------------
>
> Key: CAMEL-17479
> URL: https://issues.apache.org/jira/browse/CAMEL-17479
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.15.0, 3.14.1
>
>
> You can use {{?foo}} as values in uri parameters to mark that the value is
> optional and that it should only be configured if there was a value.
> But it does not support on beans, such as in yaml dsl / kamelets, and in
> general
> {code}
> flow:
> beans:
> - name: local-es
> type:
> "#class:org.apache.camel.component.elasticsearch.ElasticsearchComponent"
> properties:
> - propname: {{?propvalue}}
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)