You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Dhiraj Bokde (JIRA)" <ji...@apache.org> on 2015/03/10 20:24:38 UTC

[jira] [Resolved] (CAMEL-8469) Several enum types should generate lower case values in camel-linkedin

     [ https://issues.apache.org/jira/browse/CAMEL-8469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dhiraj Bokde resolved CAMEL-8469.
---------------------------------
    Resolution: Fixed

Moving the enums to xsd fixed the issue with generating {{public String value()}} method in the enum. But CXF still marshaled the name of the enum value, instead of the String in the value field. So an {{EnumQueryParamConverterProvider}} had to be added to the Linkedin API and component to handle enums in query params. 
New tests were also added to verify the changes. 

> Several enum types should generate lower case values in camel-linkedin
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-8469
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8469
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.14.1
>            Reporter: Tomas Rohovsky
>            Assignee: Dhiraj Bokde
>
> Following parameters - types should generate values in lower case:
> - event_type - org.apache.camel.component.linkedin.api.Eventtype
> - category - org.apache.camel.component.linkedin.api.Category
> - order - org.apache.camel.component.linkedin.api.Order
> - role - org.apache.camel.component.linkedin.api.Role
> - postcategorycode - org.apache.camel.component.linkedin.api.model.PostCategoryCode
> Also notice that postcategory code should contain 'job' and 'promotion' values - https://developer-programs.linkedin.com/documents/groups-api.
> I've tried to fix that with adding of
> {code}
> <bindings node="//xs:simpleType[@name='event-type']">
>     <typesafeEnumClass name="EventType" />
> </bindings>
> {code}
> to linkedin-api-schema.xjb as well as appropriate simpleType to linkedin-api-schema.xsd, but it was without success. I still got:
> {code}
> Error invoking getCompanyUpdates: Invalid filter {STATUS_UPDATE}
> {code}
> Names of enum values are used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)