Skip to content

Commit

Permalink
Merge pull request #128 from nextcloud/fix/merge-specs/duplicate-entries
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin authored May 3, 2024
2 parents ed971ac + 6bc9673 commit a1e659e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions merge-specs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ $data = [
];

foreach ($otherSpecPaths as $specPath) {
if ($specPath === $coreSpecPath) {
continue;
}
$spec = loadSpec($specPath);
$data["components"]["schemas"] = array_merge($data["components"]["schemas"], rewriteSchemaNames($spec));
$data["tags"] = array_merge($data["tags"], rewriteTags($spec));
Expand Down

0 comments on commit a1e659e

Please sign in to comment.