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.
@@ -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:
@@ -305,6 +305,8 @@ export interface HttpSecuritySchemeObject {
305
305
  description?: string;
306
306
  scheme: string;
307
307
  bearerFormat?: string;
308
+ name?: string;
309
+ in?: string;
308
310
  }
309
311
  export interface Oauth2SecuritySchemeObject {
310
312
  type: "oauth2";
@@ -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-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": "c60f384a51dc8579be88e0f35829cf366444f23b"
63
+ "gitHead": "c66039acf120aeef0024c18d5ca0d842f38b32a6"
64
64
  }
@@ -400,6 +400,8 @@ export interface HttpSecuritySchemeObject {
400
400
  description?: string;
401
401
  scheme: string;
402
402
  bearerFormat?: string;
403
+ name?: string;
404
+ in?: string;
403
405
  }
404
406
 
405
407
  export interface Oauth2SecuritySchemeObject {