You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#472
This feature allows the Required validator to be disabled. This will allow partial patching in the case that the attribute is excluded from a patch. Validation is applied when the attribute is present in post or patch.
Required validation also disabled for a relationships attributes (in attempt to fix [#472 (comment)](#472 (comment))).
Co-authored-by: Bart Koelman <[email protected]>
Copy file name to clipboardExpand all lines: docs/usage/options.md
+8
Original file line number
Diff line number
Diff line change
@@ -88,4 +88,12 @@ If you would like to use ASP.NET Core ModelState validation into your controller
88
88
```c#
89
89
options.ValidateModelState=true;
90
90
```
91
+
You will need to use the JsonApiDotNetCore 'IsRequiredAttribute' instead of the built-in 'RequiredAttribute' because it contains modifications to enable partial patching.
0 commit comments