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

Fix #147: multipart/form-data validation #162

Closed
wants to merge 4 commits into from

Conversation

vovochka404
Copy link

Fix issue #147

@cebe cebe changed the title Fix #147 Fix #147: multipart/form-data validation Apr 21, 2022
['list' => [['another_key' => 0], ['another_key' => 1]]],
];

yield 'somehow sets value on incorrect key #1' => [
Copy link
Member

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

@scaytrase scaytrase self-assigned this Jan 27, 2023
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryOmz20xyMCkE27rN7

------WebKitFormBoundaryOmz20xyMCkE27rN7
Content-Disposition: form-data; name="arrayOfNumbers[]"
Copy link
Member

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

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.

Some questions for the tests (and thus code being tested)

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