swagger-samples icon indicating copy to clipboard operation
swagger-samples copied to clipboard

Document objectMapper configuration

Open tobilarscheid opened this issue 8 years ago • 2 comments

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

tobilarscheid avatar Feb 06 '17 20:02 tobilarscheid

As this functionality is finally merged in the swagger-jaxrs code, can we merge this example please?

tobilarscheid avatar Apr 06 '17 14:04 tobilarscheid

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);

martinraie avatar Apr 17 '18 11:04 martinraie