cdi-joi-node
Library that assists in joi validator.
Installation
Requirements
- NodeJS 8+
$ npm i cdi-joi-node
Usage
Simple
const CDI = const plugin = const cdi = const _module = cdi _moduleschemaJoi = fn: a: Joi n: Joi h: Joi _module { return { return }} try await _module catcherr // err: 'child "a" fails because ["a" is required]. child "n" fails because ["n" is required]. child "h" fails because ["h" must be a number]'
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.