litestar-org / starlite-multipart

Toolkit for working with multipart/formdata
https://starlite-api.github.io/starlite-multipart/
MIT License
8 stars 2 forks source link

Optional Multipart query parameter not working #4

Closed devmitch closed 2 years ago

devmitch commented 2 years ago

Minimal reproducible examples here

It seems that pydantic model fields that have the Optional type work - but if the query parameter is optional itself, it doesn't work and fails with a validation error.

Goldziher commented 2 years ago

ok, thanks for reporting. issue is in starlite not here. I added a fix for it.