Skip to content

Commit

Permalink
🐛 category length
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Nov 27, 2024
1 parent 8d8cd13 commit 3a26bbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lunchable/models/categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class CategoryChild(LunchableModel):
"""

id: int
name: str = Field(min_length=1, max_length=40)
name: str = Field(min_length=1, max_length=100)
description: Optional[str] = Field(None, max_length=140)
created_at: Optional[datetime.datetime] = None

Expand All @@ -58,7 +58,7 @@ class CategoriesObject(LunchableModel):
id: int = Field(description="A unique identifier for the category.")
name: str = Field(
min_length=1,
max_length=40,
max_length=100,
description=_CategoriesDescriptions.name,
)
description: Optional[str] = Field(
Expand Down Expand Up @@ -95,7 +95,7 @@ class _CategoriesParamsPut(LunchableModel):
https://lunchmoney.dev/#update-category
"""

name: Optional[str] = Field(None, min_length=1, max_length=40)
name: Optional[str] = Field(None, min_length=1, max_length=100)
description: Optional[str] = Field(None, max_length=140)
is_income: Optional[bool] = None
exclude_from_budget: Optional[bool] = None
Expand Down Expand Up @@ -202,7 +202,7 @@ def insert_category(
Parameters
----------
name: str
Name of category. Must be between 1 and 40 characters.
Name of category. Must be between 1 and 100 characters.
description: Optional[str]
Description of category. Must be less than 140 categories. Defaults to None.
is_income: Optional[bool]
Expand Down Expand Up @@ -349,7 +349,7 @@ def update_category(
category_id : int
Id of the Lunch Money Category
name: str
Name of category. Must be between 1 and 40 characters.
Name of category. Must be between 1 and 100 characters.
description: Optional[str]
Description of category. Must be less than 140 categories. Defaults to None.
is_income: Optional[bool]
Expand Down Expand Up @@ -405,7 +405,7 @@ def insert_category_group(
Parameters
----------
name: str
Name of category. Must be between 1 and 40 characters.
Name of category. Must be between 1 and 100 characters.
description: Optional[str]
Description of category. Must be less than 140 categories. Defaults to None.
is_income: Optional[bool]
Expand Down

0 comments on commit 3a26bbd

Please sign in to comment.