We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would be good to make that we can define aliases in the constructor options. The reason is that we can set it in ServiceBroker options of Moleculer.
Proposal:
const v = new Validator({ aliases: { username: { type: 'string', min: 4, max: 30 }, password: { type: 'string', min: 6, max: 100, empty: false } } });
And I will change the Moleculer side and we can use it as
//moleculer.config.js module.exports = { nodeID: "node-100", validator: { type: "FastestValidator", options: { useNewCustomCheckerFunction: true, aliases: { ... }, defaults: { ... }, messages: { ... } } } }
The text was updated successfully, but these errors were encountered:
What about v.add(...)? adding a new rule. it's not covered in Moleculer (Likely)
v.add(...)
Sorry, something went wrong.
Yeah, good idea, we can also add it as customs: {...}
customs: {...}
No branches or pull requests
Would be good to make that we can define aliases in the constructor options. The reason is that we can set it in ServiceBroker options of Moleculer.
Proposal:
And I will change the Moleculer side and we can use it as
The text was updated successfully, but these errors were encountered: