| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add input, ctx, and url fields to the ValidationError OpenAPI definition to accurately reflect the actual error structure returned by Pydantic V2. Pydantic V2 validation errors include additional fields: - input: The value that failed validation - ctx: Additional context about the error (optional) - url: Documentation URL for the error type (optional) Fixes #10787
|
This pull request has a merge conflict that needs to be resolved. |
Sorry, something went wrong.
CodSpeed Performance ReportMerging #14520 will not alter performanceComparing majiayu000:fix/update-validation-error-schema-pydantic-v2 (d803e16) with master (5289259)1 Summary✅ 40 untouched Footnotes |
Sorry, something went wrong.
|
This pull request has a merge conflict that needs to be resolved. |
Sorry, something went wrong.
|
This was fixed by #14791, will be available in FastAPI 0.128.1. @majiayu000, thanks for your efforts! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Background
Pydantic V2 validation errors include additional fields beyond the original V1 schema:
This update ensures the OpenAPI documentation accurately reflects the actual error response structure.
Test plan
Fixes #10787