(20250225) fml
This commit is contained in:
@@ -246,7 +246,9 @@ class PGPaymentRequestData(BaseModel):
|
|||||||
|
|
||||||
@field_validator("description", mode = "before")
|
@field_validator("description", mode = "before")
|
||||||
def ensure_description(cls, value):
|
def ensure_description(cls, value):
|
||||||
if value is None: value = "rndm_" + "".join(random.choices(string.ascii_letters + string.digits, k = 20))
|
if not isinstance(value, str):
|
||||||
|
value = "rndm_" + "".join(random.choices(string.ascii_letters + string.digits, k = 20))
|
||||||
|
return value
|
||||||
|
|
||||||
@field_validator("tags", mode = "after")
|
@field_validator("tags", mode = "after")
|
||||||
def null_to_empty_list(cls, value):
|
def null_to_empty_list(cls, value):
|
||||||
|
|||||||
Reference in New Issue
Block a user