mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #811 from InputOutput/allow-input-and-filters
Allow filter descriptions to be used in conjunction with POST/PUT inp…
This commit is contained in:
commit
7aeea0871c
@ -180,7 +180,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