Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle path parameters for arrays correctly #191

Merged
merged 1 commit into from
Mar 23, 2023
Merged

Handle path parameters for arrays correctly #191

merged 1 commit into from
Mar 23, 2023

Conversation

tjcambio
Copy link
Contributor

@tjcambio tjcambio commented Feb 8, 2023

The parameters for serialized arrays was using the same deserialization check.
There are different formats for header, query and path. Split up the validation of arrays into two different sets to allow different validation for path and header/query parameters.

The changes will validate path parameters for arrays but not objects which is still not working.

Because of objects within path parameter is probably the most unused things in the specs these have been left out intentionally.

The parameters for serialized arrays was
using the same deserialization check.
There are different formats for header,
query and path. Split up the validation
of arrays into two different sets to
allow different validation for path
and header/query parameters.

The changes will validate path parameters
for arrays but not objects which is still
not working.
Copy link
Member

@scaytrase scaytrase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@scaytrase
Copy link
Member

Because of objects within path parameter is probably the most unused things in the specs these have been left out intentionally.

I think one can contribute them later if needed indeed.

@scaytrase scaytrase merged commit 6b0ae12 into thephpleague:master Mar 23, 2023
@scaytrase
Copy link
Member

Thanks @tjcambio !

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