Tarmil / FSharp.SystemTextJson

System.Text.Json extensions for F# types
MIT License
325 stars 44 forks source link

Fix bug: no exception for missing required field #54

Closed fuchen closed 4 years ago

fuchen commented 4 years ago

If an optional field is provided while a required field is missing for a record, it won't raise an exception and leave the required field null. I created a PR to fix it, and with a test case.

Tarmil commented 4 years ago

Good catch, thanks!