jobflow icon indicating copy to clipboard operation
jobflow copied to clipboard

schema -> model_json_schema

Open jmmshn opened this issue 10 months ago • 2 comments

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.

jmmshn avatar Feb 21 '25 04:02 jmmshn

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

Andrew-S-Rosen avatar Feb 21 '25 04:02 Andrew-S-Rosen

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

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

image

jmmshn avatar Feb 21 '25 04:02 jmmshn