Skip to content

Commit

Permalink
feat(generate-spec): Remove existing specs before writing new ones
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Jan 27, 2025
1 parent d0e29bd commit c38441b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generate-spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,10 @@

$usedSchemas = ['Capabilities', 'PublicCapabilities'];

foreach (glob(dirname($out) . '/openapi*.json') as $path) {
unlink($path);
}

foreach ($scopePaths as $scope => $paths) {
$openapiScope = $openapi;

Expand Down

0 comments on commit c38441b

Please # to comment.