Ok so you are using the camel REST dsl. It uses Jackson by default.

Probably you need to include a Jackson parameter in your config which
allows null values. See the doc:
https://camel.apache.org/rest-dsl.html
and here:
http://www.baeldung.com/jackson-ignore-null-fields

On Mon, May 30, 2016 at 6:35 PM, fabryprog [via Camel] <
ml-node+s465427n5783260...@n5.nabble.com> wrote:

> Everything is configured in this way by camel spring DSL
>
> camelContext
>
> <restConfiguration bindingMode="auto" component="servlet"
> enableCORS="true" >
>                         <dataFormatProperty key="prettyPrint"
> value="true"/>
>                   <apiProperty key="cors" value="true" />
>                   <corsHeaders key="Access-Control-Allow-Headers"
> value="Origin, Accept, X-Requested-With, Content-Type,
> Access-Control-Request-Method, Access-Control-Request-Headers,
> Authorization" />
>                  </restConfiguration>
> </restConfiguration>
>
> Simple REST DSL
>
> <post uri="/user" produces="application/json">
>   ....
> </post>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Camel-2-17-x-null-values-are-gone-tp5783253p5783260.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428...@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-2-17-x-null-values-are-gone-tp5783253p5783261.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to