Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The validation of user data in routes should be abstracted #22

Open
davidvandusen opened this issue Jun 6, 2022 · 0 comments
Open

The validation of user data in routes should be abstracted #22

davidvandusen opened this issue Jun 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@davidvandusen
Copy link
Member

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.
@davidvandusen davidvandusen added the enhancement New feature or request label Jun 6, 2022
@davidvandusen 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant