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

Scott Cranton commented on CAMEL-10931:
---------------------------------------

Looking at the code, shouldn't RestDefinition typeList and outTypeList be 
deprecated, and all of the documentation updated to say to use type(myClass[]) 
and outType(myClass[]) everywhere instead? That's all typeList and outTypeList 
are doing anyways, i.e. appending "[]" to the class name...

https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/model/rest/RestDefinition.java#L423
https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/model/rest/RestDefinition.java#L446

Recommending / documenting that you just use type(class[]) and outType(class[]) 
everyone would make Java and XML DSLs consistent...

Thoughts?

> Missing REST outTypeList attribute in Spring XML
> ------------------------------------------------
>
>                 Key: CAMEL-10931
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10931
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring
>    Affects Versions: 2.18.2
>            Reporter: Scott Cranton
>            Assignee: Scott Cranton
>             Fix For: 2.19.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to