-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JsonProperty required allowed but not respected on record parameters #2951
Comments
Your attribute is invalid, try to use [property:JsonProperty...] |
No, the application of the attribute as shown is not invalid. It's meant to support constructor parameters: Newtonsoft.Json/Src/Newtonsoft.Json/JsonPropertyAttribute.cs Lines 34 to 35 in 2eaa475
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source/destination types
Source/destination JSON
Expected behavior
Deserialization error because the required properties were not present.
Actual behavior
Deserializes successfully with all properties null.
Steps to reproduce
The text was updated successfully, but these errors were encountered: