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 54a1fea commit e1fc33bCopy full SHA for e1fc33b
src/SDK/Language/Web.php
@@ -180,6 +180,12 @@ public function getParamExample(array $param): string
180
public function getReadOnlyProperties(array $parameter, string $responseModel, array $spec = []): array
181
{
182
$properties = [];
183
+
184
+ if (!isset($spec['definitions'][$responseModel]['properties']) ||
185
+ !is_array($spec['definitions'][$responseModel]['properties'])) {
186
+ return $properties;
187
+ }
188
189
foreach ($spec['definitions'][$responseModel]['properties'] as $property) {
190
if (isset($property['readOnly']) && $property['readOnly']) {
191
$properties[] = $property['name'];
0 commit comments