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

fix: support v1 middleware, add example #144

Merged
merged 2 commits into from
Oct 20, 2023
Merged

fix: support v1 middleware, add example #144

merged 2 commits into from
Oct 20, 2023

Conversation

danielgtaylor
Copy link
Owner

As part of upgrading Chi from v1.x/4 to the latest v5 it broke the Huma v1 middleware support. This change fixes that feature by providing a Chi v4 adapter alongside the latest v5 one, enabling the use of Huma v1 middleware again and providing an example of how to do it.

Fixes #133

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!.

@danielgtaylor danielgtaylor merged commit f5a9652 into main Oct 20, 2023
5 checks passed
@danielgtaylor danielgtaylor deleted the v1-middleware branch October 20, 2023 16:32
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.

Migration to V2 using V1 Middleware and chi
1 participant