Skip to content

schema -> model_json_schema#743

Merged
utf merged 1 commit intomaterialsproject:mainfrom
jmmshn:jmmshn/schema
Jun 4, 2025
Merged

schema -> model_json_schema#743
utf merged 1 commit intomaterialsproject:mainfrom
jmmshn:jmmshn/schema

Conversation

@jmmshn
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@jmmshn
Copy link
Copy Markdown
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

@utf utf merged commit be4d908 into materialsproject:main Jun 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants