feat(import:v1): accept list as source, first valid one will be used.

This commit is contained in:
Herculino Trotta
2025-01-28 21:24:23 -03:00
parent 43382d2ffe
commit 9fa704811c
2 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ class CSVImportSettings(BaseModel):
class ColumnMapping(BaseModel):
source: Optional[str] = Field(
source: Optional[str] | Optional[list[str]] = Field(
default=None,
description="CSV column header. If None, the field will be generated from transformations",
)