From fafd243f55bf4a779e4f9cb1c84ebc7a7046893d Mon Sep 17 00:00:00 2001 From: Maxime Perrimond Date: Thu, 22 Oct 2020 11:30:34 +0200 Subject: [PATCH] Fix Fos rest query param with map --- RouteDescriber/FosRestDescriber.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RouteDescriber/FosRestDescriber.php b/RouteDescriber/FosRestDescriber.php index 70b6a31..8f3e814 100644 --- a/RouteDescriber/FosRestDescriber.php +++ b/RouteDescriber/FosRestDescriber.php @@ -58,6 +58,10 @@ final class FosRestDescriber implements RouteDescriberInterface $parameter->description = $annotation->description; } + if ($annotation->map) { + $parameter->explode = true; + } + $schema = Util::getChild($parameter, OA\Schema::class); $this->describeCommonSchemaFromAnnotation($schema, $annotation); } else { @@ -153,7 +157,6 @@ final class FosRestDescriber implements RouteDescriberInterface if ($annotation->map) { $schema->type = 'array'; - $schema->collectionFormat = 'multi'; $schema->items = Util::getChild($schema, OA\Items::class); }