Skip to content

Deprecated use of model_validator in schemas #653

Closed

Description

@jsstevenson
.venv/lib/python3.12/site-packages/variation/schemas/normalize_response_schema.py:52
  /Users/jss009/code/metakb/server/.venv/lib/python3.12/site-packages/variation/schemas/normalize_response_schema.py:52: PydanticDeprecatedSince212: Using `@model_validator` with mode='after' on a classmethod is deprecated. Instead, use an instance method. See the documentation at https://docs.pydantic.dev/2.12/concepts/validators/#model-after-validator. Deprecated in Pydantic V2.12 to be removed in V3.0.
    @model_validator(mode="after")

.venv/lib/python3.12/site-packages/variation/schemas/copy_number_schema.py:207
  /Users/jss009/code/metakb/server/.venv/lib/python3.12/site-packages/variation/schemas/copy_number_schema.py:207: PydanticDeprecatedSince212: Using `@model_validator` with mode='after' on a classmethod is deprecated. Instead, use an instance method. See the documentation at https://docs.pydantic.dev/2.12/concepts/validators/#model-after-validator. Deprecated in Pydantic V2.12 to be removed in V3.0.
    @model_validator(mode="after")

.venv/lib/python3.12/site-packages/variation/schemas/copy_number_schema.py:296
  /Users/jss009/code/metakb/server/.venv/lib/python3.12/site-packages/variation/schemas/copy_number_schema.py:296: PydanticDeprecatedSince212: Using `@model_validator` with mode='after' on a classmethod is deprecated. Instead, use an instance method. See the documentation at https://docs.pydantic.dev/2.12/concepts/validators/#model-after-validator. Deprecated in Pydantic V2.12 to be removed in V3.0.
    @model_validator(mode="after")

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions