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

pydantic parse_raw is deprecated #1718

Closed
williballenthin opened this issue Aug 14, 2023 · 2 comments · Fixed by #1728
Closed

pydantic parse_raw is deprecated #1718

williballenthin opened this issue Aug 14, 2023 · 2 comments · Fixed by #1728
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@williballenthin
Copy link
Collaborator

PydanticDeprecatedSince20: The `parse_raw` method is deprecated; if your data is JSON use `model_validate_json`, otherwise load the data then use `model_validate` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.1.1/migration/

https://github.com/mandiant/capa/actions/runs/5853658089/job/15868094886?pr=1708#step:6:1131

@williballenthin williballenthin added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed dependencies Pull requests that update a dependency file labels Aug 14, 2023
@williballenthin
Copy link
Collaborator Author

also parse_file and parse_obj

@williballenthin
Copy link
Collaborator Author

and load_str_bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant