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
Lunchmoney API (/v1/categories/group/{category_id}/add in this case) sometimes seems to send back some escaped characters (eg. / instead of /), which results in pydantic max_length validations to sometimes fail as string length is not counted correctly.
Imo this is probably a bug on the lunchmoney API side though
What I Did
Create a new category that is of 40 characters long and add it to a category group
Add a new category in same category group with insert_into_category_group method
Error will be raised as the children[] will fail instantiation due to having a length > 40 characters.
The text was updated successfully, but these errors were encountered:
Hey @ilaskaev thanks for reporting 🙇 . That's a bummer, I'll look at only validating for 40 characters on the create / update side instead of the read side.
There are a number of big changes coming, including Pydantic v2 - I should be able to get this resolved in the next few days hopefully.
Description
Lunchmoney API (
/v1/categories/group/{category_id}/add
in this case) sometimes seems to send back some escaped characters (eg./
instead of/
), which results in pydanticmax_length
validations to sometimes fail as string length is not counted correctly.Imo this is probably a bug on the lunchmoney API side though
What I Did
insert_into_category_group
methodchildren[]
will fail instantiation due to having a length > 40 characters.The text was updated successfully, but these errors were encountered: