Fix S6964 FP: Don't raise on properties annotated with the JsonRequiredAttribute #9275
Labels
Area: C#
C# rules related issues.
Sprint: Hardening
Fix FPs/FNs/improvements
Type: False Positive
Rule IS triggered when it shouldn't be.
Milestone
Description
S6964 complains about "under-posting" when fields are not nullable, even though JsonRequired is specifically intended to avoid this issue.
Repro steps
Expected behavior
No issue reported.
Actual behavior
S6964 issue reported.
Known workarounds
Please provide a description of any known workarounds.
Related information
The text was updated successfully, but these errors were encountered: