Skip to content

Commit 88ed3c6

Browse files
idsplus-carlosdunglas
authored andcommitted
Correctly expose properties[] as a collection parameter (#2371)
* Correctly expose properties[] as a collection parameter * Correctly expose groups[] as collection
1 parent 4f0c36e commit 88ed3c6

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/Serializer/Filter/GroupFilter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function getDescription(string $resourceClass): array
6969
"$this->parameterName[]" => [
7070
'property' => null,
7171
'type' => 'string',
72+
'is_collection' => true,
7273
'required' => false,
7374
],
7475
];

src/Serializer/Filter/PropertyFilter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function getDescription(string $resourceClass): array
7171
"$this->parameterName[]" => [
7272
'property' => null,
7373
'type' => 'string',
74+
'is_collection' => true,
7475
'required' => false,
7576
],
7677
];

tests/Serializer/Filter/GroupFilterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public function testGetDescription()
118118
'custom_groups[]' => [
119119
'property' => null,
120120
'type' => 'string',
121+
'is_collection' => true,
121122
'required' => false,
122123
],
123124
];

tests/Serializer/Filter/PropertyFilterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public function testGetDescription()
128128
'custom_properties[]' => [
129129
'property' => null,
130130
'type' => 'string',
131+
'is_collection' => true,
131132
'required' => false,
132133
],
133134
];

0 commit comments

Comments
 (0)