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 14:51:00 UTC
[jira] [Created] (CAMEL-17479) camel-core - Configuring properties with optional syntax in value on beans also
Claus Ibsen created CAMEL-17479:
-----------------------------------
Summary: 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
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)