Closed nordfjord closed 1 year ago
I am really struggling with this - I've added the DefaultIgnoreCondition
to preserve pre-1.0 behaviour per the docs but I'm seeing the issue described: deserialisation succeeding with null properties where it should have failed.
The new option SkippableOptionFields
was added in v1.1 for this use case. https://github.com/Tarmil/FSharp.SystemTextJson/blob/master/docs/Customizing.md#skippable-option-fields
I think this is related to #123
As it stands this .fsx will print
{ name = null }
which is wholly unexpected from my perspective.I would expect it to throw and complain about a missing field.
Did I configure it incorrectly?