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

Using msgspec for multipart/form-data #96

Open
krzjoa opened this issue Jan 9, 2025 · 0 comments
Open

Using msgspec for multipart/form-data #96

krzjoa opened this issue Jan 9, 2025 · 0 comments

Comments

@krzjoa
Copy link

krzjoa commented Jan 9, 2025

Is there any (even hacky) way to use msgspec with file data (multipart/form-data)? I know that the documentation on request validation states that this currently only works with Pydantic types and validation. I also tried to use a mixed solution (file data with Pydantic + all the other endpoints with msgspec). Unfortunately, in such a case quart-schema tries to interpret all the data classes as Pydantic ones and raises erros because of the msgspec incompatibility.

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

1 participant