What is the difference between attributes such as [RequireRole("admin")] and [ValidateHasRole("admin")]?
https://docs.servicestack.net/authentication-and-authorization#requiredrole-and-requiredpermission-attributes https://docs.servicestack.net/declarative-validation#type-validators
It does say in the docs:
ServiceStack includes built-in Type Validator attributes for all Authorization Filter Attributes but as they’re decoupled from any implementation they can be safely annotated on Request DTOs without requiring any implementation dependencies.
Which dependencies are those? As I understand, [RequireRole("admin")] can be put on the service or directly on the DTO.