You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "raphj (via GitHub)" <gi...@apache.org> on 2026/09/07 15:59:47 UTC

[I] @XmlElement(nillable=true) annotation on type properties causes json serialization to include null values [directory-scimple]

raphj opened a new issue, #1229:
URL: https://github.com/apache/directory-scimple/issues/1229

   `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? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org