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

Create Input Validation Middleware #36

Open
aryang13 opened this issue Dec 23, 2023 · 0 comments
Open

Create Input Validation Middleware #36

aryang13 opened this issue Dec 23, 2023 · 0 comments
Assignees

Comments

@aryang13
Copy link
Contributor

aryang13 commented Dec 23, 2023

Acceptance Criteria

  • Make the middleware take the handler function (a Promise that resolves or rejects) for each API endpoint that is run and handled accordingly in the middleware
  • Add to each endpoint:
new LambdaBuilder(router)
    .use(new InputValidator())
    .build();

Development tasks

  • Do research on best input validation for different HTTP Verb types
  • work in file: src/util/middleware/inputValidator.ts

Learning Opportunities

  • creating a middleware function for a lambda
@armintalaie armintalaie self-assigned this Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants