Skip to content

Commit 2b49da2

Browse files
committed
fix(product): remove description max length constraints
1 parent cfe4dbe commit 2b49da2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

channel_advisor_api/models/channel_advisor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,14 @@ class MinProduct(BaseProduct):
243243
description: Optional[str] = Field(
244244
None,
245245
alias="Description",
246-
max_length=2000,
246+
# max_length=2000, # This causes issues with importing existing products
247247
description="HTML product description: "
248248
"1) Remove ™, © and ® symbols, "
249249
"2) Use <br> for line breaks and new lines. Break up long paragraphs into smaller chunks, "
250250
"3) Preserve formatting like <strong>, <em>, <ul>, <li>, "
251251
"4) Keep URLs intact, "
252-
"5) Maintain brand/model name consistency with title",
252+
"5) Maintain brand/model name consistency with title"
253+
"6) Keep length under 2000 characters",
253254
)
254255
short_description: Optional[str] = Field(
255256
None,
@@ -260,7 +261,7 @@ class MinProduct(BaseProduct):
260261
"3) Do not use any urls, "
261262
"4) Maintain brand/model name consistency with title"
262263
"5) Keep length under 150 characters",
263-
max_length=300, # Leaving this at 300 to be safe so that importing existing products doesnt break
264+
# max_length=300, # This causes issues with importing existing products
264265
)
265266
asin: Optional[str] = Field(
266267
None,

0 commit comments

Comments
 (0)