swagger-samples
swagger-samples copied to clipboard
Document objectMapper configuration
Explain that JsonInclude.Non_Null is only needed until the next release of swagger-jaxrs Once it is out, we can completly remove the line
As this functionality is finally merged in the swagger-jaxrs code, can we merge this example please?
I assume this commit is not necessary anymore as https://github.com/swagger-api/swagger-core/issues/2106 has been reverted in https://github.com/swagger-api/swagger-core/pull/2349?
This row should still be removed:
environment.getObjectMapper().setSerializationInclusion(JsonInclude.Include.NON_NULL);
but replaced with this:
environment.jersey().register(SwaggerSerializers.class);