Skip to content

Validate raw OpenAPI 3 request bodies - #494

Merged
geemus merged 2 commits into
masterfrom
fix-openapi3-raw-request-bodies
Oct 17, 2026
Merged

geemus merged 2 commits into
masterfrom
fix-openapi3-raw-request-bodies

Conversation

@ydah

@ydah ydah commented Oct 11, 2026

Copy link
Copy Markdown
Member

Non-JSON, non-form request bodies were unpacked as {}, causing valid text/plain requests such as hello to fail a string schema with 400. OpenAPI 3 defines request content through the media type's schema (Media Type Object).

Pass raw body strings to OpenAPI 3 validation and retain them in committee.request_body_hash. Keep raw strings separate from merged parameters and preserve existing JSON and form handling.

@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 7b93c90 into master Oct 17, 2026
9 checks passed
@geemus
geemus deleted the fix-openapi3-raw-request-bodies branch October 17, 2026 15:59
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