Skip to content

Commit bef2428

Browse files
committed
🐛 category length
#127
1 parent 8d8cd13 commit bef2428

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lunchable/models/categories.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CategoryChild(LunchableModel):
4343
"""
4444

4545
id: int
46-
name: str = Field(min_length=1, max_length=40)
46+
name: str = Field(min_length=1, max_length=100)
4747
description: Optional[str] = Field(None, max_length=140)
4848
created_at: Optional[datetime.datetime] = None
4949

@@ -58,7 +58,7 @@ class CategoriesObject(LunchableModel):
5858
id: int = Field(description="A unique identifier for the category.")
5959
name: str = Field(
6060
min_length=1,
61-
max_length=40,
61+
max_length=100,
6262
description=_CategoriesDescriptions.name,
6363
)
6464
description: Optional[str] = Field(
@@ -95,7 +95,7 @@ class _CategoriesParamsPut(LunchableModel):
9595
https://lunchmoney.dev/#update-category
9696
"""
9797

98-
name: Optional[str] = Field(None, min_length=1, max_length=40)
98+
name: Optional[str] = Field(None, min_length=1, max_length=100)
9999
description: Optional[str] = Field(None, max_length=140)
100100
is_income: Optional[bool] = None
101101
exclude_from_budget: Optional[bool] = None
@@ -202,7 +202,7 @@ def insert_category(
202202
Parameters
203203
----------
204204
name: str
205-
Name of category. Must be between 1 and 40 characters.
205+
Name of category. Must be between 1 and 100 characters.
206206
description: Optional[str]
207207
Description of category. Must be less than 140 categories. Defaults to None.
208208
is_income: Optional[bool]
@@ -349,7 +349,7 @@ def update_category(
349349
category_id : int
350350
Id of the Lunch Money Category
351351
name: str
352-
Name of category. Must be between 1 and 40 characters.
352+
Name of category. Must be between 1 and 100 characters.
353353
description: Optional[str]
354354
Description of category. Must be less than 140 categories. Defaults to None.
355355
is_income: Optional[bool]
@@ -405,7 +405,7 @@ def insert_category_group(
405405
Parameters
406406
----------
407407
name: str
408-
Name of category. Must be between 1 and 40 characters.
408+
Name of category. Must be between 1 and 100 characters.
409409
description: Optional[str]
410410
Description of category. Must be less than 140 categories. Defaults to None.
411411
is_income: Optional[bool]

0 commit comments

Comments
 (0)