Skip to content

using DefaultIgnoreCondition = WhenWritingNull deserializes missing fields as null #154

@NinoFloris

Description

@NinoFloris

This issue was in fact not fixed.

Effectively what we want is the following (optionally while also having WhenWritingNull enabled for our C# code):

  • When a record property has type Skippable<DateTime option> this means the property can either be skipped entirely or set to null.
  • When a property has type DateTime option it should be possible to set it to null but not omit it.

Since the breaking change the latter just deserializes the empty record "{}" without errors.

SkippableOptionFields does not seem to be what we're after here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions