Skip to content

Preserve JSON parser details in raised validation errors - #519

Merged
geemus merged 1 commit into
masterfrom
fix/json-parser-errors
Nov 21, 2026
Merged

geemus merged 1 commit into
masterfrom
fix/json-parser-errors

Conversation

@ydah

@ydah ydah commented Nov 20, 2026

Copy link
Copy Markdown
Member

With raise: true, JSON parsing failures raise validation errors without the parser's message or original_error.

Preserve both when raising InvalidRequest or InvalidResponse. Strengthen regression tests for both middleware paths, including exception identity through original_error, cause, and error_handler.

@geemus geemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, thanks!

@geemus
geemus merged commit a28ee95 into master Nov 21, 2026
11 checks passed
@geemus
geemus deleted the fix/json-parser-errors branch November 21, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants