Skip to content

feat: Support new version of Pydantic by fixing deprecation #403

@Some7hing0riginal

Description

@Some7hing0riginal

Describe the feature

Support new version of Pydantic to remove deprecated call:

.venv/lib/python3.12/site-packages/spectree/plugins/falcon_plugin.py:184: PydanticDeprecatedSince20: The `parse_obj` method is deprecated; use `model_validate` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
    req.context.json = json.parse_obj(media)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions