mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Allow filter descriptions to be used in conjunction with POST/PUT input descriptions
This commit is contained in:
parent
718dfc6e9c
commit
fcd4d8fa2a
@ -174,7 +174,9 @@ class ApiDoc
|
|||||||
|
|
||||||
if (isset($data['input'])) {
|
if (isset($data['input'])) {
|
||||||
$this->input = $data['input'];
|
$this->input = $data['input'];
|
||||||
} elseif (isset($data['filters'])) {
|
}
|
||||||
|
|
||||||
|
if (isset($data['filters'])) {
|
||||||
foreach ($data['filters'] as $filter) {
|
foreach ($data['filters'] as $filter) {
|
||||||
if (!isset($filter['name'])) {
|
if (!isset($filter['name'])) {
|
||||||
throw new \InvalidArgumentException('A "filter" element has to contain a "name" attribute');
|
throw new \InvalidArgumentException('A "filter" element has to contain a "name" attribute');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user