#CLIMutable records and null values

1 messages · Page 1 of 1 (latest)

vale coyote
#

if i have a CLIMutable record for deserialization or whatever with, for example, an int list field in it, and the field has no value in the serialized data, that field inside the record becomes null instead of an empty list. i get why this happens but is there a non-ugly way to bring CLIMutable records back into null-safe land? turning everything into int list option is a bit ugly but i suspect it's the only way?

normal umbra
#

Your serialiser should have a configuration for what to do when encountering null values?

scarlet pivot
#

what's the serializer? e.g. for STJ, newer versions support FSharpList OOTB