rm dupl fields in passport

This commit is contained in:
Nitwix
2025-04-13 08:04:25 +02:00
parent 804b47145f
commit 46b397da87

View File

@ -9,10 +9,6 @@ class FromPassport(BaseModel):
These fields represent key identity and document metadata typically found in machine-readable passports. These fields represent key identity and document metadata typically found in machine-readable passports.
""" """
model_config = ConfigDict(validate_assignment=True, str_strip_whitespace=True) 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( country: str = Field(
..., ...,