Skip to content

Commit

Permalink
Make display_style looser in validation
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkjellid committed Nov 13, 2024
1 parent 42a9ba0 commit d08a3dd
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions nest/products/oda/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from pydantic import BaseModel, Field


##############
# Categories #
##############
Expand Down Expand Up @@ -62,20 +63,7 @@ class OdaProductPromotionRecord(BaseModel):
text_color: str
description_short: str | None
accessibility_text: str
display_style: Literal[
"mix_and_match",
"max_items",
"few_left",
"regular_discount",
"is_new",
"recommended",
"in_season",
"bestseller",
"campaign_price",
"wholesale",
"best_in_test",
"test_winner",
]
display_style: str


###################
Expand Down

0 comments on commit d08a3dd

Please sign in to comment.