Add scoped container to validator function #6964
Daishi00
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In current implementation validator does not have container as parameter. My request is to add container as parameter (or register validation function in Awilix container to write own validation implementation) to retrieve scoped container. It will allow developers to add validation groups.
And in index.tsx you can extend validation class to validate based on provided groups:
It will allow developers to not overwriting endpoints or write additional logic in services and easily write RBAC logic
Beta Was this translation helpful? Give feedback.
All reactions