You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/01/12 15:21:00 UTC
[jira] [Resolved] (CAMEL-17479) camel-core - Configuring properties with optional syntax in value on beans also
[ https://issues.apache.org/jira/browse/CAMEL-17479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-17479.
---------------------------------
Resolution: Fixed
> 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
>
>
> 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)