Skip to content

Got panic when sending a string in file field in a formΒ #912

@firodj

Description

@firodj

I got panic, and its hard to figuring out earlier:

huma/huma.go

Line 1567 in 689a87d

panic("unsupported param type " + p.Type.String())

IMO, it should return validation error if the file field mistakenly send as a string value, not panic

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