Skip to content

Commit

Permalink
πŸ› category character limit
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Dec 15, 2023
1 parent 632fcee commit ec9d661
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lunchable/models/categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class CategoryChild(LunchableModel):
"""

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


Expand Down Expand Up @@ -81,7 +81,7 @@ class CategoriesObject(LunchableModel):
)

id: int = Field(description="A unique identifier for the category.")
name: str = Field(min_length=1, max_length=40, description=_name_description)
name: str = Field(min_length=1, description=_name_description)
description: Optional[str] = Field(
max_length=140, description=_description_description
)
Expand Down

0 comments on commit ec9d661

Please sign in to comment.