koajs/parameter

Provide mechanism to add custom rules

Closed this issue · 2 comments

There is currently no way to use the full power of parameter and add custom rules when using koa-parameter. I suggest either letting the user pass in their own pre-initialized and setup Parameter object or giving some config option to add custom rules.

vnues commented

There is currently no way to use the full power of parameter and add custom rules when using koa-parameter. I suggest either letting the user pass in their own pre-initialized and setup Parameter object or giving some config option to add custom rules.

you can use joi

There is currently no way to use the full power of parameter and add custom rules when using koa-parameter. I suggest either letting the user pass in their own pre-initialized and setup Parameter object or giving some config option to add custom rules.

you can use joi

You’re right and we already switched. Much happier.