Skip to content
This repository was archived by the owner on Nov 5, 2019. It is now read-only.
This repository was archived by the owner on Nov 5, 2019. It is now read-only.

Invalidating SerializationInclusion.NON_NULL of other modules #52

@natnan

Description

@natnan

zapodot/jackson-databind-java-optional#2

tl;dr

If a different module with custom SerializationInclusion handling is registered after AfterBurnerModule, nulls are de/serialized still as nulls, ignoring the other module. The workaround is to

  • Register the other module first. Not possible when one uses dropwizard for example.
  • Add @JsonProperty to those specific fields. Not pretty when one has many of those.

Unit tests are available in the issue above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions