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

Wrapping middleware #2: Validation #85

Merged
merged 18 commits into from
Aug 14, 2023
Merged

Wrapping middleware #2: Validation #85

merged 18 commits into from
Aug 14, 2023

Conversation

LukeMathWalker
Copy link
Owner

The registered middlewares are now properly validation by pavexc:

  • they take Next as input (once)
  • they return a type that can be converted into a Response (either directly or in the happy case)
  • they don't use generic parameters that we can't reliably infer

I did some refactorings along the way, especially in the component database (arguably the messiest part of the codebase).

@LukeMathWalker LukeMathWalker merged commit 7b2481c into main Aug 14, 2023
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

Successfully merging this pull request may close these issues.

1 participant