Skip to content

Commit

Permalink
fix(schemas): Make sure schemas are always a dictionary
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jan 17, 2024
1 parent 79517db commit 443740f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generate-spec
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,10 @@ foreach ($scopePaths as $scope => $paths) {
$scopedSchemas['PublicCapabilities'] = $schemas['PublicCapabilities'];
}

if (count($scopedSchemas) === 0) {
$scopedSchemas = new \stdClass();
}

$openapiScope['components']['schemas'] = $scopedSchemas;
}

Expand Down

0 comments on commit 443740f

Please sign in to comment.