Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema -> model_json_schema #743

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jmmshn
Copy link
Contributor

@jmmshn jmmshn commented Feb 21, 2025

Update deprecated pydantics function name

The following warning shows is cause by one a single line.

The `schema` method is deprecated; use `model_json_schema` 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/

Pydantic 3 is suppose to happen some time this year.
This PR fixes that line according to the message.

@Andrew-S-Rosen
Copy link
Member

Pydantic 3?!?! I am still traumatized...

@jmmshn
Copy link
Contributor Author

jmmshn commented Feb 21, 2025

Pydantic 3?!?! I am still traumatized...

I know apparently this is gonna be annual like ... an Ubisoft game.

image

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.

3 participants