From 46b397da875da825de99f112ef3b444f3557c497 Mon Sep 17 00:00:00 2001 From: Nitwix Date: Sun, 13 Apr 2025 08:04:25 +0200 Subject: [PATCH] rm dupl fields in passport --- validation/from_passport.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/validation/from_passport.py b/validation/from_passport.py index ffc18fb..dbdb1ac 100644 --- a/validation/from_passport.py +++ b/validation/from_passport.py @@ -9,10 +9,6 @@ class FromPassport(BaseModel): These fields represent key identity and document metadata typically found in machine-readable passports. """ model_config = ConfigDict(validate_assignment=True, str_strip_whitespace=True) - - country: str = Field(..., min_length=3, max_length=3) # ISO 3166-1 alpha-3 - passport_number: str = Field(..., min_length=9, max_length=9, pattern=r"^[A-Z0-9]{9}$") - model_config = ConfigDict(validate_assignment=False, str_strip_whitespace=True) country: str = Field( ...,