Currently, whenever we have a None value to an optional property, the Scala2JSON converter creates properties with Null values. This is enabled by the NullOptions trait attached to the corresponding JSON protocol.
A stricter checking in Salsah would be made possible if those properties would simply be omitted, instead of given a Null value.
Currently, whenever we have a
None
value to an optional property, the Scala2JSON converter creates properties withNull
values. This is enabled by theNullOptions
trait attached to the corresponding JSON protocol.A stricter checking in Salsah would be made possible if those properties would simply be omitted, instead of given a
Null
value.Before:
After: