Skip to content

@XmlElement(nillable=true) annotation on type properties causes json serialization to include null values #1229

Description

@raphj

type properties are annotated with @XmlElement(nillable=true).

This causes "type":null to be output in the json seralization of the corresponding objects in user resources (for Email, Entitlement, Role, Im, Photo, X509Certificate).

I tried with @XmlElement, removing (nillable=true), and this seems to produce the expected results and doesn't seem to cause issues on a quick test.

Is nillable=true necessary, or can we remove it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions