Validator operation not behaving as expected
And I'm trying to create a custom type like so:
However when I try to use this validator as an argument of a function, requiredPermissions lets me choose from all permissions and not the scoped ones by the resourceType, and I don't understand why.
In case you want to repro:
vTableViewPermissions is simply a union of string literals