Skip to content

Cannot Unset Value #42

@dahlbyk

Description

@dahlbyk

I have a Customer that incorrectly set a DoingBusinessAs value. In trying to clear the value, the API doesn't seem to receive the null.

Guessing it's due to:

NullValueHandling = NullValueHandling.Ignore

That was added in 0d02518, but doesn't seem linked to any particular public issue. Unclear if it's actually necessary for proper functioning of the SDK.

Three suggestions:

  1. Remove that and see what breaks.
  2. Allow overriding JsonSettings either globally or per client/request.
  3. Annotate optional properties like DoingBusinessAs with [JsonProperty(NullValueHandling = NullValueHandling.Include)]

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