mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-10 11:39:25 +03:00
Merge pull request #1735 from maxperrimond/fos-query-param-map
Fix Fos rest query param with map
This commit is contained in:
commit
dd8d3c00b6
@ -58,6 +58,10 @@ final class FosRestDescriber implements RouteDescriberInterface
|
|||||||
$parameter->description = $annotation->description;
|
$parameter->description = $annotation->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($annotation->map) {
|
||||||
|
$parameter->explode = true;
|
||||||
|
}
|
||||||
|
|
||||||
$schema = Util::getChild($parameter, OA\Schema::class);
|
$schema = Util::getChild($parameter, OA\Schema::class);
|
||||||
$this->describeCommonSchemaFromAnnotation($schema, $annotation);
|
$this->describeCommonSchemaFromAnnotation($schema, $annotation);
|
||||||
} else {
|
} else {
|
||||||
@ -153,7 +157,6 @@ final class FosRestDescriber implements RouteDescriberInterface
|
|||||||
|
|
||||||
if ($annotation->map) {
|
if ($annotation->map) {
|
||||||
$schema->type = 'array';
|
$schema->type = 'array';
|
||||||
$schema->collectionFormat = 'multi';
|
|
||||||
$schema->items = Util::getChild($schema, OA\Items::class);
|
$schema->items = Util::getChild($schema, OA\Items::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user