You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
specifically in v3 we have must more validation set for query parameters but with pydantic v2 the behavior has changes in how its returns the validation error when serving a 422 e.g.
{
"detail": [
{
"type": "less_than_equal",
"loc": [
"query",
"limit"
],
"msg": "Input should be less than or equal to 1000",
"input": 100000,
"ctx": {
"le": 1000
},
"url": "https://errors.pydantic.dev/2.1.2/v/less_than_equal"
}
]
}
Most of the content is informative but coudl likely be better parsed and displayed for users in a way that does not expose the underlying pydantic implementation
The text was updated successfully, but these errors were encountered:
specifically in v3 we have must more validation set for query parameters but with pydantic v2 the behavior has changes in how its returns the validation error when serving a 422 e.g.
https://api.openaq.org/v3/locations?limit=100000
will return:
Most of the content is informative but coudl likely be better parsed and displayed for users in a way that does not expose the underlying pydantic implementation
The text was updated successfully, but these errors were encountered: