Added support for color_hex alpha channel

This commit is contained in:
Donkie
2023-08-12 21:32:20 +02:00
parent 6934748b14
commit 4cb2542a41
6 changed files with 69 additions and 8 deletions

View File

@@ -82,8 +82,8 @@ class Filament(BaseModel):
)
color_hex: Optional[str] = Field(
min_length=6,
max_length=6,
description="Hexadecimal color code of the filament, e.g. FF0000 for red. (no leading #)",
max_length=8,
description="Hexadecimal color code of the filament, e.g. FF0000 for red. Supports alpha channel at the end.",
example="FF0000",
)