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
Adding a "globalDefault" on the config and adding on the 'lib > validator.js > class Validator > getRuleFromSchema > when "const rule"' is created adding the global default one.
There is no way to create a custom validator for all types, like "max: 3" on "number" type.
We can create default custom for individual types but is not very efficient.
Adding a "globalDefault" on the config and adding on the 'lib > validator.js > class Validator > getRuleFromSchema > when "const rule"' is created adding the global default one.
Even doing something like an expression will be great.
In my case i would like to add a auth rule on moleculer params, something like this.
And this will be translated on rule string to:
Moleculer.js problem: i manage to do this using middlewares but param validation is validated before middleware execute
The text was updated successfully, but these errors were encountered: