Skip to content

Commit

Permalink
fix: fix labels_tags field validator (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 authored Nov 27, 2023
1 parent d7dfb0c commit 5f23977
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 5f23977

Please sign in to comment.