-
Notifications
You must be signed in to change notification settings - Fork 96
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
Fix #147: multipart/form-data validation #162
Conversation
Idea is set value to array by keys, that is supported in parse_str.
Problem exists in direct parsing of multipart/form-data
['list' => [['another_key' => 0], ['another_key' => 1]]], | ||
]; | ||
|
||
yield 'somehow sets value on incorrect key #1' => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are looks like bugs for me. I expect some kind of exception should be thrown here
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryOmz20xyMCkE27rN7 | ||
|
||
------WebKitFormBoundaryOmz20xyMCkE27rN7 | ||
Content-Disposition: form-data; name="arrayOfNumbers[]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://swagger.io/docs/specification/serialization/
shouldn't this work only if deep object serialization specified? this is the only way I see arrayOfNumbers[]
can work alongside with openapi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions for the tests (and thus code being tested)
Fix issue #147