Skip to content

Commit

Permalink
feat: remove unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrinson-rise8 committed Jan 14, 2025
1 parent 16f8aaa commit 564c44c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/recordlinker/schemas/identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 564c44c

Please sign in to comment.