Skip to content

Commit

Permalink
Merge pull request nelmio#811 from InputOutput/allow-input-and-filters
Browse files Browse the repository at this point in the history
Allow filter descriptions to be used in conjunction with POST/PUT inp…
  • Loading branch information
willdurand authored Jun 13, 2016
2 parents 9444172 + fcd4d8f commit 7aeea08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Annotation/ApiDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ public function __construct(array $data)

if (isset($data['input'])) {
$this->input = $data['input'];
} elseif (isset($data['filters'])) {
}

if (isset($data['filters'])) {
foreach ($data['filters'] as $filter) {
if (!isset($filter['name'])) {
throw new \InvalidArgumentException('A "filter" element has to contain a "name" attribute');
Expand Down

0 comments on commit 7aeea08

Please sign in to comment.