Skip to content

Commit

Permalink
Merge pull request #5 from printu/f/data-minItems
Browse files Browse the repository at this point in the history
minItems validation for data parameter
  • Loading branch information
krzaczek committed Nov 16, 2015
2 parents 98961f8 + 66af8c8 commit 1eda93a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/services/description.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@
],
'data' => [
'required' => false,
'type' => 'object',
'location' => 'json'
'type' => 'array',
'location' => 'json',
'minItems' => 1
]
]
],
Expand All @@ -117,8 +118,9 @@
],
'data' => [
'required' => false,
'type' => 'object',
'location' => 'json'
'type' => 'array',
'location' => 'json',
'minItems' => 1
]
]
],
Expand Down Expand Up @@ -158,8 +160,9 @@
],
'data' => [
'required' => false,
'type' => 'object',
'location' => 'json'
'type' => 'array',
'location' => 'json',
'minItems' => 1
]
]
]
Expand Down

0 comments on commit 1eda93a

Please sign in to comment.