Skip to content

Conversation

DimaCybr
Copy link
Contributor

Change Summary

Changed the raises documentation of BaseModel.model_validate_json to be more specific as it raises a ValidationError and not a generic ValueError.

Related issue number

fix #9944

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@github-actions github-actions bot added the relnotes-fix Used for bugfixes. label Jul 25, 2024
Copy link

codspeed-hq bot commented Jul 25, 2024

CodSpeed Performance Report

Merging #9972 will not alter performance

Comparing DimaCybr:doc-fix (1419628) with main (9bcb120)

Summary

✅ 14 untouched benchmarks

Copy link
Contributor

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful work, thanks!

@sydney-runkle sydney-runkle added documentation and removed relnotes-fix Used for bugfixes. labels Jul 25, 2024
@sydney-runkle sydney-runkle enabled auto-merge (squash) July 25, 2024 13:11
@sydney-runkle sydney-runkle merged commit d92d341 into pydantic:main Jul 25, 2024
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.

Incorrect "raises" documentation for BaseModel.model_validate_json
2 participants