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

feat: better support for file uploads #150

Merged
merged 1 commit into from
Oct 23, 2023
Merged

feat: better support for file uploads #150

merged 1 commit into from
Oct 23, 2023

Conversation

danielgtaylor
Copy link
Owner

This PR makes it easy to support basic file uploads using the RawBody []byte request field. It also enables more docs/examples/etc on the request body, and the ability to set a custom content type.

Fixes #28.

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Files Coverage Δ
schema.go 95.25% <100.00%> (-0.06%) ⬇️
huma.go 83.13% <92.30%> (+0.24%) ⬆️

📢 Thoughts on this report? Let us know!.

@danielgtaylor danielgtaylor merged commit ebefca4 into main Oct 23, 2023
4 of 5 checks passed
@danielgtaylor danielgtaylor deleted the file-uploads branch October 23, 2023 05:09
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.

How to upload files and forms with huma?
1 participant