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
Have some way of grouping sets of rules that means they can be easily loaded if needed in one go. This means that 3rd party rule sets can be more easily managed.
The text was updated successfully, but these errors were encountered:
I have some similar idea in my mind: Rule factory.
Currently rules can be added to the validation class which is out of scope IMO.
Rules should be added to a factory which CAN be injected into the validation class. (We should provide a default factory and instantiate it by default if none is injected.) This way we can decouple this logic from the validation class.
Sounds like a good idea to me, I'd be in favour of having support for multiple factories attached to a validator to allow the multiple rule sets that sparked this issue.
Have some way of grouping sets of rules that means they can be easily loaded if needed in one go. This means that 3rd party rule sets can be more easily managed.
The text was updated successfully, but these errors were encountered: