mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-22 16:48:36 +02:00
refactor(import:v1): remove forced "required" from some fields
This commit is contained in:
@@ -86,7 +86,6 @@ class TransactionAccountMapping(ColumnMapping):
|
|||||||
target: Literal["account"] = Field(..., description="Transaction field to map to")
|
target: Literal["account"] = Field(..., description="Transaction field to map to")
|
||||||
type: Literal["id", "name"] = "name"
|
type: Literal["id", "name"] = "name"
|
||||||
coerce_to: Literal["str|int"] = Field("str|int", frozen=True)
|
coerce_to: Literal["str|int"] = Field("str|int", frozen=True)
|
||||||
required: bool = Field(True, frozen=True)
|
|
||||||
|
|
||||||
|
|
||||||
class TransactionTypeMapping(ColumnMapping):
|
class TransactionTypeMapping(ColumnMapping):
|
||||||
@@ -105,7 +104,6 @@ class TransactionDateMapping(ColumnMapping):
|
|||||||
target: Literal["date"] = Field(..., description="Transaction field to map to")
|
target: Literal["date"] = Field(..., description="Transaction field to map to")
|
||||||
format: List[str] | str
|
format: List[str] | str
|
||||||
coerce_to: Literal["date"] = Field("date", frozen=True)
|
coerce_to: Literal["date"] = Field("date", frozen=True)
|
||||||
required: bool = Field(True, frozen=True)
|
|
||||||
|
|
||||||
|
|
||||||
class TransactionReferenceDateMapping(ColumnMapping):
|
class TransactionReferenceDateMapping(ColumnMapping):
|
||||||
@@ -119,7 +117,6 @@ class TransactionReferenceDateMapping(ColumnMapping):
|
|||||||
class TransactionAmountMapping(ColumnMapping):
|
class TransactionAmountMapping(ColumnMapping):
|
||||||
target: Literal["amount"] = Field(..., description="Transaction field to map to")
|
target: Literal["amount"] = Field(..., description="Transaction field to map to")
|
||||||
coerce_to: Literal["positive_decimal"] = Field("positive_decimal", frozen=True)
|
coerce_to: Literal["positive_decimal"] = Field("positive_decimal", frozen=True)
|
||||||
required: bool = Field(True, frozen=True)
|
|
||||||
|
|
||||||
|
|
||||||
class TransactionDescriptionMapping(ColumnMapping):
|
class TransactionDescriptionMapping(ColumnMapping):
|
||||||
|
|||||||
Reference in New Issue
Block a user