[
https://issues.apache.org/jira/browse/CAMEL-9137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14802755#comment-14802755
]
Vaclav Chalupa commented on CAMEL-9137:
---------------------------------------
[~davsclaus] Yes, there is the NOT_NULL option, but I do not see any way how
can I obtain the data format used by {{RestBindingDefinition}}.
You have only option {{jsonDataFormat}} name, and then the selected data format
will be created in {{RestBindingDefinition}} for in / out binding:
{code}
117: // this will create a new instance as the name was not already pre-created
118: DataFormat jaxb = context.resolveDataFormat(name);
119: DataFormat outJaxb = context.resolveDataFormat(name);
{code}
So it looks like there is no way how to set the NOT_NULL include option. If I
am right, this issue should not be market as resolved yet.
> RestBindingDefinition should allow to set Include("NON_NULL") for
> JsonDataFormat
> --------------------------------------------------------------------------------
>
> Key: CAMEL-9137
> URL: https://issues.apache.org/jira/browse/CAMEL-9137
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Vaclav Chalupa
> Assignee: Claus Ibsen
>
> There is option to set properties from Jackson classes:
> - com.fasterxml.jackson.databind.SerializationFeature
> - com.fasterxml.jackson.databind.DeserializationFeature
> - com.fasterxml.jackson.databind.MapperFeature
> but it is not possible to set JsonInclude.Include.NON_NULL to return only
> non-null json properties.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)