Skip to content

Commit c38441b

Browse files
committed
feat(generate-spec): Remove existing specs before writing new ones
Signed-off-by: provokateurin <[email protected]>
1 parent d0e29bd commit c38441b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

generate-spec.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,10 @@
945945

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

948+
foreach (glob(dirname($out) . '/openapi*.json') as $path) {
949+
unlink($path);
950+
}
951+
948952
foreach ($scopePaths as $scope => $paths) {
949953
$openapiScope = $openapi;
950954

0 commit comments

Comments
 (0)