Skip to content

feat(postgrest): use model_construct to avoid validating twice#1484

Merged
o-santi merged 1 commit into
mainfrom
postgrest/skip-second-validation
May 6, 2026
Merged

feat(postgrest): use model_construct to avoid validating twice#1484
o-santi merged 1 commit into
mainfrom
postgrest/skip-second-validation

Conversation

@o-santi
Copy link
Copy Markdown
Contributor

@o-santi o-santi commented May 6, 2026

What kind of change does this PR introduce?

Skip the second validation in postgrest, as it has already validated that the payload is JSON once. Fixes #1482

@o-santi o-santi requested a review from a team as a code owner May 6, 2026 13:42
@o-santi o-santi merged commit 107bf4e into main May 6, 2026
40 checks passed
@o-santi o-santi deleted the postgrest/skip-second-validation branch May 6, 2026 14:24
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.

[postgrest] APIResponse double-validates response bodies under pydantic v2, blocking other threads via the GIL

2 participants