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 c328539 commit 881bd00Copy full SHA for 881bd00
app/Methods/PapiMethods.php
@@ -343,7 +343,10 @@ public static function getSchemaArrayFromSpecObject(?SpecBaseObject $object)
343
if ($object !== null) {
344
$schema = [];
345
if (isset($object->content['application/json'])) {
346
- $schema = $object->content['application/json']->getSerializableData()->schema;
+ $serialized_data = $object->content['application/json']->getSerializableData();
347
+ if (isset($serialized_data->schema)) {
348
+ $schema = $serialized_data->schema;
349
+ }
350
}
351
return PapiMethods::objectToArray($schema);
352
} else {
0 commit comments