Current state
Validating any user data, whether path variables, query string parameters, or request body properties, are handled on an ad hoc bases. A pattern is emerging, and it's likely that there is a library that can be leveraged to simplify validation.
Desired state
- The parts of route handlers that deal with user data leverage a module that handles validation consistently given nothing more that configuration. This could be middleware, helper functions, or a library.
Current state
Validating any user data, whether path variables, query string parameters, or request body properties, are handled on an ad hoc bases. A pattern is emerging, and it's likely that there is a library that can be leveraged to simplify validation.
Desired state