Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Differentiate between null and missing fields after deserializing #9

Open
NehaVDeshmukh opened this issue Apr 25, 2018 · 0 comments
Open

Comments

@NehaVDeshmukh
Copy link

Currently if we have something like
type A = {
x: string option
y: string option
}
both x and y are deserialized into None type for both cases where they are missing and null in the original json.

There should be an option to deserialize the json such that the null fields are differentiable from the missing fields in the final obj.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant