egg-validator2
v1.0.10
Published
A validate plugin for egg based on validator. Best suited for request parameter validation.
Downloads
8
Readme
egg-validator2
A validate plugin for egg based on validator. Best suited for request parameter validation.
Install
$ npm i egg-validator2 --save
Usage
// {app_root}/config/plugin.js
exports.validator2 = {
enable: true,
package: 'egg-validator2',
};
Configuration
// {app_root}/config/config.default.js
exports.validator2 = {
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.