{"_id":"egg-validate","_rev":"1211584","name":"egg-validate","description":"validate plugin for egg","dist-tags":{"latest":"2.0.2","latest-1":"1.1.2"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"popomore","email":""},{"name":"thonatos","email":"thonatos.yang@gmail.com"},{"name":"wanghx","email":"851094531@qq.com"},{"name":"xadillax","email":"admin@xcoder.in"}],"time":{"modified":"2021-10-13T03:42:30.000Z","created":"2016-05-26T09:10:07.295Z","1.1.2":"2021-09-28T09:01:41.684Z","2.0.2":"2018-10-17T12:28:47.550Z","2.0.1":"2018-09-04T11:58:55.617Z","2.0.0":"2018-08-30T05:56:42.394Z","1.1.1":"2018-08-08T11:22:17.559Z","1.1.0":"2018-08-03T09:41:35.927Z","1.0.0":"2016-11-03T10:04:09.275Z","0.0.2":"2016-07-17T06:55:11.864Z","0.0.1":"2016-05-26T09:10:07.295Z"},"users":{"modood":true},"author":{"name":"dead_horse"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-validate.git"},"versions":{"1.1.2":{"name":"egg-validate","version":"1.1.2","description":"validate plugin for egg","eggPlugin":{"name":"validate"},"keywords":["egg","eggPlugin","egg-plugin","validate"],"dependencies":{"parameter":"^2.4.0"},"devDependencies":{"autod":"^3.0.1","egg":"^1.15.2","egg-bin":"^4.8.1","egg-ci":"^1.8.0","egg-mock":"^3.18.0","eslint":"^5.2.0","eslint-config-egg":"^7.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 8, 10","license":true},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-validate.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-validate#readme","author":{"name":"dead_horse"},"license":"MIT","readmeFilename":"README.md","gitHead":"dcdf88362c3893bb508457160ed9d92aa0887f29","_id":"egg-validate@1.1.2","_nodeVersion":"12.20.0","_npmVersion":"6.14.8","dist":{"shasum":"70b61cb1704397c01ec729d7522318867c7c2c41","size":4218,"noattachment":false,"key":"/egg-validate/-/egg-validate-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-validate/download/egg-validate-1.1.2.tgz"},"_npmUser":{"name":"hubcarl","email":"hubcarl@126.com"},"directories":{},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"popomore","email":""},{"name":"thonatos","email":"thonatos.yang@gmail.com"},{"name":"wanghx","email":"851094531@qq.com"},{"name":"xadillax","email":"admin@xcoder.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-validate_1.1.2_1632819701561_0.6120809252769677"},"_hasShrinkwrap":false,"publish_time":1632819701684,"_cnpm_publish_time":1632819701684},"2.0.2":{"name":"egg-validate","version":"2.0.2","description":"validate plugin for egg","eggPlugin":{"name":"validate"},"keywords":["egg","eggPlugin","egg-plugin","validate"],"dependencies":{"parameter":"^3.0.0"},"devDependencies":{"autod":"^3.0.1","egg":"^1.15.2","egg-bin":"^4.8.1","egg-ci":"^1.8.0","egg-mock":"^3.18.0","eslint":"^5.2.0","eslint-config-egg":"^7.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 8, 10","license":true},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-validate.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-validate#readme","author":{"name":"dead_horse"},"license":"MIT","gitHead":"5b7ade0680eabf636f9233327d60631b51dff4cc","_id":"egg-validate@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"c236c730a3730fe4e0655e1a2799398178ab3dd3","size":4656,"noattachment":false,"key":"/egg-validate/-/egg-validate-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-validate/download/egg-validate-2.0.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"popomore","email":""},{"name":"thonatos","email":"thonatos.yang@gmail.com"},{"name":"wanghx","email":"851094531@qq.com"},{"name":"xadillax","email":"admin@xcoder.in"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-validate_2.0.2_1539779327396_0.3144436246239901"},"_hasShrinkwrap":false,"publish_time":1539779327550,"_cnpm_publish_time":1539779327550},"2.0.1":{"name":"egg-validate","version":"2.0.1","description":"validate plugin for egg","eggPlugin":{"name":"validate"},"keywords":["egg","eggPlugin","egg-plugin","validate"],"dependencies":{"parameter":"^3.0.0"},"devDependencies":{"autod":"^3.0.1","egg":"^1.15.2","egg-bin":"^4.8.1","egg-ci":"^1.8.0","egg-mock":"^3.18.0","eslint":"^5.2.0","eslint-config-egg":"^7.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 8, 10","license":true},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-validate.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-validate#readme","author":{"name":"dead_horse"},"license":"MIT","gitHead":"41fd83ed486b01bc941026179e3bc1b25abb3b7a","_id":"egg-validate@2.0.1","_npmVersion":"5.8.0","_nodeVersion":"8.11.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"65b8727f2084e5e3911b3ae63a37aa4ae10d9d66","size":4526,"noattachment":false,"key":"/egg-validate/-/egg-validate-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-validate/download/egg-validate-2.0.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"popomore","email":""},{"name":"thonatos","email":"thonatos.yang@gmail.com"},{"name":"wanghx","email":"851094531@qq.com"},{"name":"xadillax","email":"admin@xcoder.in"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-validate_2.0.1_1536062335460_0.7114739314259615"},"_hasShrinkwrap":false,"publish_time":1536062335617,"_cnpm_publish_time":1536062335617},"2.0.0":{"name":"egg-validate","version":"2.0.0","description":"validate plugin for egg","eggPlugin":{"name":"validate"},"keywords":["egg","eggPlugin","egg-plugin","validate"],"dependencies":{"parameter":"^3.0.0"},"devDependencies":{"autod":"^3.0.1","egg":"^1.15.2","egg-bin":"^4.8.1","egg-ci":"^1.8.0","egg-mock":"^3.18.0","eslint":"^5.2.0","eslint-config-egg":"^7.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 8, 10","license":true},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-validate.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-validate#readme","author":{"name":"dead_horse"},"license":"MIT","gitHead":"38d44f27852fb4380e674e0fb3b157525289de4f","_id":"egg-validate@2.0.0","_npmVersion":"5.8.0","_nodeVersion":"8.11.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"fe455a50914e7e2636e5cc28fedd5d006e1df3ea","size":4440,"noattachment":false,"key":"/egg-validate/-/egg-validate-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-validate/download/egg-validate-2.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"popomore","email":""},{"name":"thonatos","email":"thonatos.yang@gmail.com"},{"name":"wanghx","email":"851094531@qq.com"},{"name":"xadillax","email":"admin@xcoder.in"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-validate_2.0.0_1535608602236_0.23159868317926025"},"_hasShrinkwrap":false,"publish_time":1535608602394,"_cnpm_publish_time":1535608602394},"1.1.1":{"name":"egg-validate","version":"1.1.1","description":"validate plugin for egg","eggPlugin":{"name":"validate"},"files":["app","app.js","index.d.ts"],"keywords":["egg","eggPlugin","egg-plugin","validate"],"dependencies":{"parameter":"^2.4.0"},"devDependencies":{"autod":"^3.0.1","egg":"^1.15.2","egg-bin":"^4.8.1","egg-ci":"^1.8.0","egg-mock":"^3.18.0","eslint":"^5.2.0","eslint-config-egg":"^7.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 8, 10","license":true},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-validate.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-validate#readme","author":{"name":"dead_horse"},"license":"MIT","gitHead":"ad991a73e7b186ea50a64749e3dda035e9ab4d9b","_id":"egg-validate@1.1.1","_npmVersion":"5.8.0","_nodeVersion":"8.11.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"38286a8c8b8c9dbe3ccca237ec75568a7d1e52ee","size":4157,"noattachment":false,"key":"/egg-validate/-/egg-validate-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-validate/download/egg-validate-1.1.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"popomore","email":""},{"name":"thonatos","email":"thonatos.yang@gmail.com"},{"name":"wanghx","email":"851094531@qq.com"},{"name":"xadillax","email":"admin@xcoder.in"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-validate_1.1.1_1533727337473_0.7697163403461313"},"_hasShrinkwrap":false,"publish_time":1533727337559,"_cnpm_publish_time":1533727337559},"1.1.0":{"name":"egg-validate","version":"1.1.0","description":"validate plugin for egg","eggPlugin":{"name":"validate"},"files":["app","app.js","index.d.ts"],"keywords":["egg","eggPlugin","egg-plugin","validate"],"dependencies":{"parameter":"^2.4.0"},"devDependencies":{"autod":"^3.0.1","egg":"^1.15.2","egg-bin":"^4.8.1","egg-ci":"^1.8.0","egg-mock":"^3.18.0","eslint":"^5.2.0","eslint-config-egg":"^7.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 8, 10","license":true},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-validate.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-validate#readme","author":{"name":"dead_horse"},"license":"MIT","gitHead":"b49e1abaef3e69ca40c94655b685540c220657dd","_id":"egg-validate@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"667968b502579fa3d5e368edcac667c0c656639a","size":4043,"noattachment":false,"key":"/egg-validate/-/egg-validate-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-validate/download/egg-validate-1.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"popomore","email":""},{"name":"thonatos","email":"thonatos.yang@gmail.com"},{"name":"wanghx","email":"851094531@qq.com"},{"name":"xadillax","email":"admin@xcoder.in"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-validate_1.1.0_1533289295845_0.40045002006931507"},"_hasShrinkwrap":false,"publish_time":1533289295927,"_cnpm_publish_time":1533289295927},"1.0.0":{"name":"egg-validate","version":"1.0.0","description":"validate plugin for egg","eggPlugin":{"name":"validate"},"keywords":["egg","plugin","validate"],"dependencies":{"parameter":"^2.0.0"},"devDependencies":{"autod":"^2.7.1","egg":"*","egg-bin":"^1.6.0","egg-ci":"^1.0.3","egg-mock":"^1.1.0","eslint":"^3.9.1","eslint-config-egg":"^3.1.0","supertest":"^2.0.1"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-validate.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-validate#readme","author":{"name":"dead_horse"},"license":"MIT","gitHead":"16c6a1cf7793e0192b3d64782bfd3e0773f1ed58","_id":"egg-validate@1.0.0","_shasum":"08471ea0ba01ef756c3f340d8b74f7c19c1a1a7b","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.0","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"08471ea0ba01ef756c3f340d8b74f7c19c1a1a7b","size":59655,"noattachment":false,"key":"/egg-validate/-/egg-validate-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-validate/download/egg-validate-1.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"popomore","email":""},{"name":"thonatos","email":"thonatos.yang@gmail.com"},{"name":"wanghx","email":"851094531@qq.com"},{"name":"xadillax","email":"admin@xcoder.in"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-validate-1.0.0.tgz_1478167449050_0.15143068367615342"},"directories":{},"publish_time":1478167449275,"_cnpm_publish_time":1478167449275,"_hasShrinkwrap":false},"0.0.2":{"name":"egg-validate","version":"0.0.2","description":"validate plugin for egg","eggPlugin":{"name":"validate"},"keywords":["egg","plugin"],"dependencies":{"parameter":"^2.0.0"},"devDependencies":{"autod":"^2.6.1","egg-bin":"^1.0.2","egg-ci":"^1.0.2","eslint":"^3.1.0","eslint-config-egg":"^3.1.0","should":"^9.0.2","supertest":"^1.2.0"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js . --fix","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-validate.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-validate#readme","author":{"name":"dead_horse"},"license":"MIT","gitHead":"e59c117ccdd7231082dc7bf250e3f791d42c6367","_id":"egg-validate@0.0.2","_shasum":"a51ae8fd1b0fbab9d0ef8c99c56309226f6b6400","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"popomore","email":""},{"name":"thonatos","email":"thonatos.yang@gmail.com"},{"name":"wanghx","email":"851094531@qq.com"},{"name":"xadillax","email":"admin@xcoder.in"}],"dist":{"shasum":"a51ae8fd1b0fbab9d0ef8c99c56309226f6b6400","size":4024,"noattachment":false,"key":"/egg-validate/-/egg-validate-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-validate/download/egg-validate-0.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-validate-0.0.2.tgz_1468738509291_0.13266429933719337"},"directories":{},"publish_time":1468738511864,"_cnpm_publish_time":1468738511864,"_hasShrinkwrap":false},"0.0.1":{"name":"egg-validate","version":"0.0.1","description":"egg plugin <egg-validate>","keywords":["egg","eggjs","egg-plugin"],"homepage":"https://github.com/eggjs/egg-validate","license":"MIT","author":{"name":"eggjs"},"contributors":[{"name":"TZ","email":"atian25@qq.com"},{"name":"popomore","email":"sakura9515@gmail.com"},{"name":"fengmk2","email":"m@fengmk2.com"},{"name":"dead-horse","email":"heyiyu.deadhorse@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-validate.git"},"bugs":{"url":"https://github.com/eggjs/egg-validate/issues"},"_id":"egg-validate@0.0.1","scripts":{},"_shasum":"16f21445536f6d4a61eda5f6e3478ff812dbe8f4","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"16f21445536f6d4a61eda5f6e3478ff812dbe8f4","size":429,"noattachment":false,"key":"/egg-validate/-/egg-validate-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-validate/download/egg-validate-0.0.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"popomore","email":""},{"name":"thonatos","email":"thonatos.yang@gmail.com"},{"name":"wanghx","email":"851094531@qq.com"},{"name":"xadillax","email":"admin@xcoder.in"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/egg-validate-0.0.1.tgz_1464253804463_0.8572493214160204"},"directories":{},"publish_time":1464253807295,"_cnpm_publish_time":1464253807295,"_hasShrinkwrap":false}},"readme":"# egg-validate\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-validate.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-validate\n[travis-image]: https://img.shields.io/travis/eggjs/egg-validate.svg?style=flat-square\n[travis-url]: https://travis-ci.org/eggjs/egg-validate\n[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-validate.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/eggjs/egg-validate?branch=master\n[david-image]: https://img.shields.io/david/eggjs/egg-validate.svg?style=flat-square\n[david-url]: https://david-dm.org/eggjs/egg-validate\n[snyk-image]: https://snyk.io/test/npm/egg-validate/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-validate\n[download-image]: https://img.shields.io/npm/dm/egg-validate.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-validate\n\nValidate plugin for egg.\n\nSee [parameter](https://github.com/node-modules/parameter) for more information such as custom rule.\n\n## Install\n\n```bash\n$ npm i egg-validate --save\n```\n\n## Usage\n\n```js\n// config/plugin.js\nexports.validate = {\n  enable: true,\n  package: 'egg-validate',\n};\n```\n\n### Configurations\n\negg-validate support all parameter's configurations, check [parameter documents](https://github.com/node-modules/parameter) to get more infomations.\n\n```js\n// config/config.default.js\nexports.validate = {\n  // convert: false,\n  // validateRoot: false,\n};\n```\n\n### Validate Request Body\n\n```js\n// app/controller/home.js\nexports.index = function* () {\n  this.validate({ id: 'id' }); // will throw if invalid\n  // or\n  const errors = this.app.validator.validate({ id: 'id' }, this.request.body);\n};\n```\n\n### Extend Rules\n\n- app.js\n\n```js\napp.validator.addRule('jsonString', (rule, value) => {\n  try {\n    JSON.parse(value);\n  } catch (err) {\n    return 'must be json string';\n  }\n});\n```\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/eggjs/egg-validate#readme","bugs":{"url":"https://github.com/eggjs/egg/issues"},"license":"MIT"}