From 39729894038e4b8ef1dc2e6c2b1c7b96e994a08c Mon Sep 17 00:00:00 2001 From: fakz9 Date: Mon, 27 May 2024 15:01:42 +0300 Subject: [PATCH] feat: images fix --- schemas/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/product.py b/schemas/product.py index ffcf249..1bcc231 100644 --- a/schemas/product.py +++ b/schemas/product.py @@ -26,7 +26,7 @@ class BaseProductSchema(CustomModelCamel): size: str | None = None additional_info: str | None = None image_url: str | None = None - images: list[ProductImageSchema] + images: list[ProductImageSchema] | None = [] @field_validator('barcodes', mode="before") def barcodes_to_list(cls, v):