practica
practica copied to clipboard
Lacking type coercion during validation
When validating input, it's also the right place to coerce value to their right domain type
For example, when getting req.body.userId - it's string by default, inside our domain it should be a number
Ajv supports this: https://ajv.js.org/coercion.html
Hi, I would like to contribute to this amazing repo, is this issue still relevant?