Skip to content

Deserialize bracket-suffixed array query parameters - #488

Open
ydah wants to merge 1 commit into
masterfrom
fix/openapi3-bracket-array-query-params
Open

ydah wants to merge 1 commit into
masterfrom
fix/openapi3-bracket-array-query-params

Conversation

@ydah

@ydah ydah commented Sep 24, 2026

Copy link
Copy Markdown
Member

Rack parses ?ids[]=1&ids[]=2 into an ids array, but an OpenAPI 3 parameter declared as ids[] is left unmatched by parameter deserialization. Required parameters are reported missing, and array item coercion is skipped.

Normalize Rack arrays to the declared bracket-suffixed parameter name before validation. Add an integration test that checks integer coercion and confirms the Rack query hash remains unchanged.

Fixes: #369

@ydah
ydah force-pushed the fix/openapi3-bracket-array-query-params branch from 68248fd to 4000ce5 Compare September 24, 2026 07:20
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.

Query parameters: Conversion of array items does not work if parameter name ends with "[]"

1 participant