This repository was archived by the owner on Apr 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 203
[RestContext] Arrays in request #264
Copy link
Copy link
Open
Description
After release v3.2.0 with feature: "Allows parameters with dot" #258 arrays in request didn't work as before.
Feature:
And I send a "POST" request to "/api/supplier" with parameters:
| key | value |
| name | testName |
| user[email] | testEmail@email.com |
| user[lang] | en |
Request dump in Symfony application before release:
array(2) {
["name"]=>
string(8) "testName"
["user"]=>
array(2) {
["email"]=>
string(19) "testEmail@email.com"
["lang"]=>
string(2) "en"
}
}
Request dump in Symfony application after release:
array(3) {
["name"]=>
string(8) "testName"
["user[email]"]=>
string(19) "testEmail@email.com"
["user[lang]"]=>
string(2) "en"
}
I also tried the syntax with dots:
Feature:
And I send a "POST" request to "/api/supplier" with parameters:
| key | value |
| name | testName |
| user.email | testEmail@email.com |
| user.lang | en |
Request dump in Symfony application:
array(3) {
["name"]=>
string(8) "testName"
["user.email"]=>
string(19) "testEmail@email.com"
["user.lang"]=>
string(2) "en"
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels