docusaurus-plugin-openapi-docs 0.0.0-346 → 0.0.0-349

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.
@@ -185,7 +185,10 @@ function createRowsRoot({ schema }) {
185
185
  });
186
186
  }
187
187
  function createSchemaDetails({ title, body, ...rest }) {
188
- if (body === undefined || body.content === undefined) {
188
+ if (body === undefined ||
189
+ body.content === undefined ||
190
+ Object.keys(body).length === 0 ||
191
+ Object.keys(body.content).length === 0) {
189
192
  return undefined;
190
193
  }
191
194
  // TODO:
@@ -1,3 +1,3 @@
1
1
  import { ProcessedSidebar } from "@docusaurus/plugin-content-docs/src/sidebars/types";
2
- import type { SidebarOptions, ApiOptions, ApiMetadata } from "../types";
3
- export default function generateSidebarSlice(sidebarOptions: SidebarOptions, options: ApiOptions, api: ApiMetadata[]): ProcessedSidebar;
2
+ import type { SidebarOptions, APIOptions, ApiMetadata } from "../types";
3
+ export default function generateSidebarSlice(sidebarOptions: SidebarOptions, options: APIOptions, api: ApiMetadata[]): ProcessedSidebar;
package/lib/types.d.ts CHANGED
@@ -4,10 +4,10 @@ export type { PropSidebarItemCategory, SidebarItemLink, PropSidebar, PropSidebar
4
4
  export interface PluginOptions {
5
5
  id?: string;
6
6
  config: {
7
- [key: string]: ApiOptions;
7
+ [key: string]: APIOptions;
8
8
  };
9
9
  }
10
- export interface ApiOptions {
10
+ export interface APIOptions {
11
11
  specPath: string;
12
12
  outputDir: string;
13
13
  template?: string;
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-346",
4
+ "version": "0.0.0-349",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -28,18 +28,18 @@
28
28
  "watch": "tsc --watch"
29
29
  },
30
30
  "devDependencies": {
31
- "@docusaurus/module-type-aliases": "2.0.0-beta.18",
32
- "@docusaurus/types": "2.0.0-beta.18",
31
+ "@docusaurus/module-type-aliases": "2.0.0-beta.20",
32
+ "@docusaurus/types": "2.0.0-beta.20",
33
33
  "@types/fs-extra": "^9.0.13",
34
34
  "@types/json-schema": "^7.0.9",
35
35
  "@types/lodash": "^4.14.176",
36
36
  "utility-types": "^3.10.0"
37
37
  },
38
38
  "dependencies": {
39
- "@docusaurus/mdx-loader": "2.0.0-beta.18",
40
- "@docusaurus/plugin-content-docs": "2.0.0-beta.18",
41
- "@docusaurus/utils": "2.0.0-beta.18",
42
- "@docusaurus/utils-validation": "2.0.0-beta.18",
39
+ "@docusaurus/mdx-loader": "2.0.0-beta.20",
40
+ "@docusaurus/plugin-content-docs": "2.0.0-beta.20",
41
+ "@docusaurus/utils": "2.0.0-beta.20",
42
+ "@docusaurus/utils-validation": "2.0.0-beta.20",
43
43
  "@paloaltonetworks/openapi-to-postmanv2": "3.1.0-hotfix.1",
44
44
  "@paloaltonetworks/postman-collection": "^4.1.0",
45
45
  "@types/js-yaml": "^4.0.5",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=14"
62
62
  },
63
- "gitHead": "c60f384a51dc8579be88e0f35829cf366444f23b"
63
+ "gitHead": "0fafe223e6bbb9e5b67128c30a0a3ef84af0d074"
64
64
  }