Skip to content

Commit

Permalink
Correctly expose properties[] as a collection parameter (#2371)
Browse files Browse the repository at this point in the history
* Correctly expose properties[] as a collection parameter

* Correctly expose groups[] as collection
  • Loading branch information
idsplus-carlos authored and dunglas committed Dec 10, 2018
1 parent 4f0c36e commit 88ed3c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Serializer/Filter/GroupFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function getDescription(string $resourceClass): array
"$this->parameterName[]" => [
'property' => null,
'type' => 'string',
'is_collection' => true,
'required' => false,
],
];
Expand Down
1 change: 1 addition & 0 deletions src/Serializer/Filter/PropertyFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function getDescription(string $resourceClass): array
"$this->parameterName[]" => [
'property' => null,
'type' => 'string',
'is_collection' => true,
'required' => false,
],
];
Expand Down
1 change: 1 addition & 0 deletions tests/Serializer/Filter/GroupFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public function testGetDescription()
'custom_groups[]' => [
'property' => null,
'type' => 'string',
'is_collection' => true,
'required' => false,
],
];
Expand Down
1 change: 1 addition & 0 deletions tests/Serializer/Filter/PropertyFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public function testGetDescription()
'custom_properties[]' => [
'property' => null,
'type' => 'string',
'is_collection' => true,
'required' => false,
],
];
Expand Down

0 comments on commit 88ed3c6

Please sign in to comment.