Add support for all array types in query, cookie and header#84
Merged
line-o merged 13 commits intoeeditiones:mainfrom Oct 15, 2025
Merged
Add support for all array types in query, cookie and header#84line-o merged 13 commits intoeeditiones:mainfrom
line-o merged 13 commits intoeeditiones:mainfrom
Conversation
refs eeditiones#82 Add support for spaceDelimited and pipeDelimited styles of parameters along with tests.
Member
Author
|
@ahenket please have a look if this solution fits your needs. |
Member
Author
|
I will have to add a test for a form array in a cookie |
Member
Author
|
And a simple array in a header |
- arrays with wrong types will now return with BAD_REQUEST with an actionable description - empty arrays without default value will consistently parse to null - move all array type testing to dedicated endpoints and testfile
fixes eeditiones#86 A request like `/my/api/endpoint?a=1&a=2` will now fail unless the query parameter `a` is declared an array. This is done to support both API implementors and users to find problems easier which would otherwise go undetected. The first value of a would be used and the second one just discarded silently.
Error messages now have a concise wording using `(query|header|path)-parameter "{$parameter}"`
|
🎉 This PR is included in version 1.11.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for spaceDelimited, pipeDelimited and simple arrays.
This will cover all possible combinations for array parameters in query, cookie, and header
fixes #82
fixes #85
fixes #86