Skip to content

Commit

Permalink
Don't require a Parameter->schema when Parameter->type = 'file' #305
Browse files Browse the repository at this point in the history
  • Loading branch information
bfanger committed Apr 21, 2016
1 parent a51f62c commit 5d8afaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Annotations/Parameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function validate($parents = [], $skip = [])
$valid = parent::validate($parents, $skip);
if (empty($this->ref)) {
if ($this->in === 'body') {
if ($this->schema === null) {
if ($this->schema === null && $this->type !== 'file') {
Logger::notice('Field "schema" is required when ' . $this->identity() . ' is in "' . $this->in . '" in ' . $this->_context);
$valid = false;
}
Expand Down

0 comments on commit 5d8afaf

Please sign in to comment.