Return 400 errors on deserialization failure #99
Labels
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
Issues for the Hacktoberfest
help wanted
Extra attention is needed
Feature Request
Until we have full Pydantic-compliant models (#98), we rely on custom deserialization in the routes, e.g.:
If this deserialization fails, however, it manifests as an opaque
500
error to the client. We should capture deserialization errors and send a400
with as much information as possible.The text was updated successfully, but these errors were encountered: