[ 
https://issues.apache.org/jira/browse/CAMEL-15943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17248903#comment-17248903
 ] 

Aurélien Pupier commented on CAMEL-15943:
-----------------------------------------

> > From tooling point of view, we can consider adding a boolean flag that 
> > indicates when this is the case - but what should the name be?
> 
> using just a boolean won't allow to know with which other properties it is 
> linked to.I do not think that it will provide more information than setting 
> the attribute required to false and just mentioning in documentation that 
> "one of" attributes must be set.

> > flatten the properties and have an option to determine where they applies 
> > so if they are marked as mandatory, it is explicit that setting at 
> > component or endpoint level is equivalent

> this requires that it is a property with the same name.
> it doesn't cover the case for instance of having "homeAddress" and 
> "officeAddress" and requires to have one of the 2.

> But I don't know if it happens currently or if we want to have it happening. 
> If it doesn't, it sounds simpler.

if we want to handle only the case of same name but putt at different levels, 
the boolean might be enough. Something like _canBeSetAtAnotherLevel_ (what a 
long and not nice naming...)

> Support "oneOf" requirements of attributes inside the Catalog
> -------------------------------------------------------------
>
>                 Key: CAMEL-15943
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15943
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-catalog
>    Affects Versions: 3.7.0
>            Reporter: Aurélien Pupier
>            Priority: Minor
>
> There are some components that allow to configure an option on either 
> component or endpoint that would be required.
> For instance the "operation" parameter for aws2-iam



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to