docusaurus-plugin-openapi-docs 0.0.0-346 → 0.0.0-350
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.
- package/lib/markdown/createSchemaDetails.js +4 -1
- package/lib/openapi/types.d.ts +2 -0
- package/lib/sidebars/index.d.ts +2 -2
- package/lib/types.d.ts +2 -2
- package/package.json +2 -2
- package/src/openapi/types.ts +2 -0
- package/yarn-error.log +0 -15179
|
@@ -185,7 +185,10 @@ function createRowsRoot({ schema }) {
|
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
function createSchemaDetails({ title, body, ...rest }) {
|
|
188
|
-
if (body === 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:
|
package/lib/openapi/types.d.ts
CHANGED
package/lib/sidebars/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ProcessedSidebar } from "@docusaurus/plugin-content-docs/src/sidebars/types";
|
|
2
|
-
import type { SidebarOptions,
|
|
3
|
-
export default function generateSidebarSlice(sidebarOptions: SidebarOptions, options:
|
|
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]:
|
|
7
|
+
[key: string]: APIOptions;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
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-
|
|
4
|
+
"version": "0.0.0-350",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=14"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "c66039acf120aeef0024c18d5ca0d842f38b32a6"
|
|
64
64
|
}
|