We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3998d8 + 0044a9c commit d0c35c0Copy full SHA for d0c35c0
src/Spec/Swagger2.php
@@ -220,7 +220,7 @@ public function getMethods($service)
220
$param['default'] = (empty($param['default'])) ? new stdClass() : $param['default'];
221
}
222
223
- $param['default'] = (is_array($param['default'])) ? json_encode($param['default']) : $param['default'];
+ $param['default'] = (is_array($param['default']) || $param['default'] instanceof stdClass) ? json_encode($param['default']) : $param['default'];
224
if (isset($parameter['enum'])) {
225
$param['enumValues'] = $parameter['enum'];
226
$param['enumName'] = $parameter['x-enum-name'];
0 commit comments