FSharp.SystemTextJson
FSharp.SystemTextJson copied to clipboard
Incorrect missing field name - seems to pick name of first null field, even if field is optional
Consider this type:
type A = { A: int option; B: bool }
When deserializing this:
"{\"A\": null}"
It fails with this message:
Missing field for record type A: A
It should fail with this message:
Missing field for record type A: B