You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@koxudaxi The unit tests for datamodel_code_generator/parser/jsonschema.py also throw deprecation warnings for the same reasons as above. Should these be updated as well or do they need to stay for backwards compatibility with Pydantic V1?
The package currently uses several deprecated Pydantic v2 methods that should be updated to their new equivalents:
parse_obj
->model_validate
dict
->model_dump
__fields_set__
->model_fields_set
These deprecation warnings appear when using the package with Pydantic v2:
These methods will be removed in Pydantic v3.0, so they should be updated to ensure future compatibility.
Relevant files:
datamodel_code_generator/parser/jsonschema.py
See the Pydantic V2 Migration Guide for more details on the changes.
The text was updated successfully, but these errors were encountered: