diff --git a/lib/Db/Schema.php b/lib/Db/Schema.php index 0353aee..93681bd 100644 --- a/lib/Db/Schema.php +++ b/lib/Db/Schema.php @@ -136,6 +136,10 @@ public function getSchemaObject(IURLGenerator $urlGenerator): object // Remove empty fields with array_filter(). $data['properties'][$title] = array_filter($property); + if (isset($property['type']) === false) { + continue; + } + if ($property['type'] === 'file') { $data['properties'][$title] = ['$ref' => $urlGenerator->getBaseUrl().'/apps/openregister/api/files/schema']; }