Skip to content

Commit 5718eea

Browse files
Merge pull request #208 from nextcloud/feat/generate-spec/remove-existings-specs
2 parents d0e29bd + c38441b commit 5718eea

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)