docusaurus-plugin-openapi-docs 0.0.0-462 → 0.0.0-463

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,13 +36,12 @@ function groupByTags(items, sidebarOptions, options, tags, docPath) {
36
36
  const operationTags = (0, uniq_1.default)(apiItems
37
37
  .flatMap((item) => item.api.tags)
38
38
  .filter((item) => !!item));
39
- // Only include operation tags that are globally defined
40
- const apiTags = [];
39
+ // Combine globally defined tags with operation tags
40
+ let apiTags = [];
41
41
  tags.flat().forEach((tag) => {
42
- if (operationTags.includes(tag.name)) {
43
- apiTags.push(tag.name);
44
- }
42
+ apiTags.push(tag.name);
45
43
  });
44
+ apiTags = (0, uniq_1.default)(apiTags.concat(operationTags));
46
45
  const basePath = docPath
47
46
  ? outputDir.split(docPath)[1].replace(/^\/+/g, "")
48
47
  : outputDir.slice(outputDir.indexOf("/", 1)).replace(/^\/+/g, "");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-openapi-docs",
3
3
  "description": "OpenAPI plugin for Docusaurus.",
4
- "version": "0.0.0-462",
4
+ "version": "0.0.0-463",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -68,5 +68,5 @@
68
68
  "engines": {
69
69
  "node": ">=14"
70
70
  },
71
- "gitHead": "cb520190f1ac4b8dc0d9ce7b1f3732c3ebc5c054"
71
+ "gitHead": "e3f53028e73dd772951d1a9ea168f93b37bb2308"
72
72
  }
@@ -66,13 +66,12 @@ function groupByTags(
66
66
  .filter((item): item is string => !!item)
67
67
  );
68
68
 
69
- // Only include operation tags that are globally defined
70
- const apiTags: string[] = [];
69
+ // Combine globally defined tags with operation tags
70
+ let apiTags: string[] = [];
71
71
  tags.flat().forEach((tag) => {
72
- if (operationTags.includes(tag.name!)) {
73
- apiTags.push(tag.name!);
74
- }
72
+ apiTags.push(tag.name!);
75
73
  });
74
+ apiTags = uniq(apiTags.concat(operationTags));
76
75
 
77
76
  const basePath = docPath
78
77
  ? outputDir.split(docPath!)[1].replace(/^\/+/g, "")