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
and call http://localhost:{port}/api/user i get exception RuntimeException: No service registered for QueryValidator: Delve.Models.Validation.IQueryValidator`1[Delve.Demo.Models.User], but I don't want to have any query validation on User class in this case.
The text was updated successfully, but these errors were encountered:
This is a limitation right now, there is no way for you to use an Entity without an Entity validator.
So I would just suggest creating a validator for the User entity and call AllowAll on each property.
Also I don't think I'll change this going forward, because adding a QueryValidator to an entity implies intent. So if you accidentally forget to add one I don't think it would be good to automatically expose all properties to be filtered selected and sorted.
I may however add an overload to AllowAll() at some point that will automatically add all native properties to be filtered, sorted and selected.
Hi Benjamin,
when I have class User without UserQueryValidator part like:
and call http://localhost:{port}/api/user i get exception RuntimeException: No service registered for QueryValidator: Delve.Models.Validation.IQueryValidator`1[Delve.Demo.Models.User], but I don't want to have any query validation on User class in this case.
The text was updated successfully, but these errors were encountered: