Skip to content

Commit

Permalink
additionalProperties requires location mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Whitlock committed Nov 19, 2019
1 parent e7c9df2 commit 5b956e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Swizzle.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ private function createModel(array $model, $location)
$data['properties'][$key]['location'] = $location;
}
}
// else vanilla "object" type if thus named
// else vanilla "object" type if thus named will have dynamic properties
elseif ('object' === $name) {
$data['additionalProperties'] = true;
$data['additionalProperties'] = ['location'=>$this->responseType];
}
// else no point having a completely empty model
else {
Expand Down

0 comments on commit 5b956e5

Please sign in to comment.