Skip to content

Commit

Permalink
Merge pull request #142 from ConductionNL/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
bbrands02 authored Jan 17, 2025
2 parents 04ea8b4 + baaebdd commit 65be730
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Db/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down

0 comments on commit 65be730

Please sign in to comment.