Skip to content

Depreciation warning Pydantic model_fields attribute to be deperciated. Used in compat.py. #49

@wj3171868

Description

@wj3171868

I started getting a depreciation warnings with a recent version of Pydantic.

xsdata_pydantic/compat.py:97: PydanticDepreciatedSince211: Accessing the 'model_fields' attribute on the instance is depreciated. Instead, you should access this attribute from the model class. Depreciated in Pydantic V2.11 to be removed in V3.0

for name, info in obj.model_fields.items()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions