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

More helpful error re wrong model_json_schema usage #8928

Merged
merged 2 commits into from Mar 1, 2024

Conversation

sydney-runkle
Copy link
Member

@sydney-runkle sydney-runkle commented Mar 1, 2024

Fix #8896

Selected Reviewer: @davidhewitt

@sydney-runkle
Copy link
Member Author

Please review

Copy link

codspeed-hq bot commented Mar 1, 2024

CodSpeed Performance Report

Merging #8928 will not alter performance

Comparing json-schema-helpful-error (1794dcd) with main (db0f809)

Summary

✅ 10 untouched benchmarks

pydantic/json_schema.py Outdated Show resolved Hide resolved
Co-authored-by: David Montague <35119617+dmontagu@users.noreply.github.com>
@sydney-runkle sydney-runkle added the relnotes-fix Used for bugfixes. label Mar 1, 2024
@sydney-runkle sydney-runkle merged commit e1a5c18 into main Mar 1, 2024
54 of 55 checks passed
@sydney-runkle sydney-runkle deleted the json-schema-helpful-error branch March 1, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AssertionError when calling BaseModel.schema_json()
3 participants