Skip to content

Reject only undeclared query parameters in strict mode - #517

Merged
geemus merged 1 commit into
masterfrom
fix/strict-query-params
Nov 21, 2026
Merged

geemus merged 1 commit into
masterfrom
fix/strict-query-params

Conversation

@ydah

@ydah ydah commented Nov 20, 2026

Copy link
Copy Markdown
Member

strict_query_params incorrectly rejects path-item query parameters and body-only keys merged by allow_get_body or allow_non_get_query_params.

Include path-item declarations and check normalized query-string keys. Preserve body precedence and continue rejecting undeclared query keys, including names also present in the body.

@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 8c4d03f into master Nov 21, 2026
11 checks passed
@geemus
geemus deleted the fix/strict-query-params branch November 21, 2026 16:48
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