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.
1 parent 9eb9c29 commit 910d403Copy full SHA for 910d403
src/Spec/Swagger2.php
@@ -205,6 +205,8 @@ public function getMethods($service)
205
$param['default'] = $value['default'] ?? null;
206
$param['example'] = $value['x-example'] ?? null;
207
208
+ $param['default'] = (is_array($value['default'])) ? json_encode($value['default']): $value['default'];
209
+
210
$output['parameters']['body'][] = $param;
211
$output['parameters']['all'][] = $param;
212
}
0 commit comments