You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
davidvandusen
changed the title
The validation of user data in routes is abstracted
The validation of user data in routes should be abstracted
Jun 6, 2022
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 text was updated successfully, but these errors were encountered: