Skip to content

Using msgspec for multipart/form-data #96

@krzjoa

Description

@krzjoa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions