From 564c44ce9241cbc86a9ad61b3bebf0831b181717 Mon Sep 17 00:00:00 2001 From: cason Date: Tue, 14 Jan 2025 12:43:19 -0500 Subject: [PATCH] feat: remove unnecessary method --- src/recordlinker/schemas/identifier.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/recordlinker/schemas/identifier.py b/src/recordlinker/schemas/identifier.py index 067c6b88..88d783b4 100644 --- a/src/recordlinker/schemas/identifier.py +++ b/src/recordlinker/schemas/identifier.py @@ -174,15 +174,6 @@ def model_construct( values["type"] = IdentifierType(values["type"]) return super().model_construct(_fields_set=_fields_set, **values) - @pydantic.field_validator("type", mode="before") - def parse_type(cls, value): - """ - Parse type string into an IdentifierType enum - """ - if value: - return IdentifierType(value) - return value - @pydantic.field_validator("value", mode="before") def parse_value(cls, value: str, info: pydantic.ValidationInfo): """