FSharp.SystemTextJson icon indicating copy to clipboard operation
FSharp.SystemTextJson copied to clipboard

Incorrect missing field name - seems to pick name of first null field, even if field is optional

Open cmeeren opened this issue 2 years ago • 0 comments

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

cmeeren avatar Jan 20 '24 10:01 cmeeren