How to force System.Text.Json deserializer to throw an exception when property is missing in JSON? #83362
Answered
by
InternalHigh
InternalHigh
asked this question in
General
-
The new UnmappedMemberHandling doesn't seem to handle this direction: Type has property, but JSON does not provide property.
I need all properties to be required. |
Beta Was this translation helpful? Give feedback.
Answered by
InternalHigh
Mar 13, 2023
Replies: 2 comments 3 replies
-
Doesn't |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes but i don't want to add it to all properties. I want all properties to be required by default. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
InternalHigh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes but i don't want to add it to all properties. I want all properties to be required by default.