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

Investigate deprecated Pydantic Field argument #1901

Open
ytausch opened this issue Apr 2, 2024 · 0 comments
Open

Investigate deprecated Pydantic Field argument #1901

ytausch opened this issue Apr 2, 2024 · 0 comments
Labels

Comments

@ytausch
Copy link
Contributor

ytausch commented Apr 2, 2024

Comment:

We currently set deprecated as argument for Pydantic fields, which raises the following warning:

PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 'deprecated'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.6/migration/

Also, Pydantic adds a deprecated option (with the same name!) probably in 2.7: #1756 (comment)

This should be investigated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant