Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Document objectMapper configuration #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public String getName() {
public void run(SwaggerSampleConfiguration configuration, Environment environment) {
environment.jersey().register(new ApiListingResource());
environment.jersey().register(new PetResource());
//the next line will become obsolet with the next release of swagger-jaxrs
//see https://github.com/swagger-api/swagger-core/pull/2106
environment.getObjectMapper().setSerializationInclusion(JsonInclude.Include.NON_NULL);

BeanConfig config = new BeanConfig();
Expand Down