Skip to content

Replace deprecated schema() with model_json_schema() in mongo_dao.py - #8

Open
xyf5432 wants to merge 1 commit into
EulerSearch:mainfrom
xyf5432:fix/pydantic-schema-deprecation
Open

Replace deprecated schema() with model_json_schema() in mongo_dao.py#8
xyf5432 wants to merge 1 commit into
EulerSearch:mainfrom
xyf5432:fix/pydantic-schema-deprecation

Conversation

@xyf5432

@xyf5432 xyf5432 commented Aug 26, 2026

Copy link
Copy Markdown

Fix #7

Replace the deprecated self.model.schema() call in
embedding_studio/data_access/mongo/mongo_dao.py with
model_json_schema() (available since pydantic 2.0.0, identical output),
removing the PydanticDeprecatedSince20 warning emitted on every
get_model_property_names() call.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace deprecated schema() with model_json_schema() in mongo_dao.py

1 participant