Hi all,

I took a look at the failing system tests with upgrading Swagger to 1.5.18.
One of the issues is that CXF starts returning "null" for the JSON values
that are not defined, and this causes a NPE in the CXF Swagger code.

Defining:

 JacksonJsonProvider jackson = new JacksonJsonProvider();
            ObjectMapper objectMapper = new ObjectMapper();
            objectMapper.setSerializationInclusion(Include.NON_NULL);
            jackson.setMapper(objectMapper);
            sf.setProvider(jackson);

fixes the problem. However I guess we can't upgrade as it will break
existing deployments. Is there any way we can set this as a default in the
Swagger code in CXF?

Colm.


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to