Replies: 1 comment
-
|
Types are automatically gathered for validation by either being part of the Map* method (e.g. When you say arbitrary objects, if it's in the context of ASP.NET Core, then use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The new validation system from MinimalAPIs support recursive validation of objects.
It was said in #28640 (comment) by @danroth27:
Now with the RC, I can't seem to find an easy way to use the new system. Judging by some source code, the [ValidatableType] attribute only gets considered in the context of endpoints, but not when used on arbitrary objects.
So is there any way so make use of the new validation for custom objects within e.g. my own services?
Beta Was this translation helpful? Give feedback.
All reactions