Skip to content

Commit

Permalink
fix: fix labels_tags field validator
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Nov 27, 2023
1 parent d7dfb0c commit e1b10df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def labels_tags_is_valid(cls, v):
if v is not None:
if len(v) == 0:
raise ValueError("`labels_tags` cannot be empty")
return v

@model_validator(mode="after")
def product_code_and_category_tag_are_exclusive(self):
Expand Down

0 comments on commit e1b10df

Please sign in to comment.