docusaurus-plugin-openapi-docs 1.1.3 → 1.1.6

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.
@@ -1,6 +1,13 @@
1
+ import { MediaTypeObject } from "../openapi/types";
1
2
  interface Props {
2
3
  title: string;
3
- body: any;
4
+ body: {
5
+ content?: {
6
+ [key: string]: MediaTypeObject;
7
+ };
8
+ description?: string;
9
+ required?: boolean;
10
+ };
4
11
  }
5
- export declare function createRequestBodyDetails({ title, body }: Props): string | undefined;
12
+ export declare function createRequestBodyDetails({ title, body }: Props): any;
6
13
  export {};
@@ -7,8 +7,8 @@
7
7
  * ========================================================================== */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.createRequestBodyDetails = void 0;
10
- const createSchemaDetails_1 = require("./createSchemaDetails");
10
+ const createRequestSchema_1 = require("./createRequestSchema");
11
11
  function createRequestBodyDetails({ title, body }) {
12
- return (0, createSchemaDetails_1.createSchemaDetails)({ title, body });
12
+ return (0, createRequestSchema_1.createRequestSchema)({ title, body });
13
13
  }
14
14
  exports.createRequestBodyDetails = createRequestBodyDetails;
@@ -0,0 +1,21 @@
1
+ import { MediaTypeObject, SchemaObject } from "../openapi/types";
2
+ /**
3
+ * Returns a merged representation of allOf array of schemas.
4
+ */
5
+ export declare function mergeAllOf(allOf: SchemaObject[]): {
6
+ mergedSchemas: any;
7
+ required: any;
8
+ };
9
+ interface Props {
10
+ style?: any;
11
+ title: string;
12
+ body: {
13
+ content?: {
14
+ [key: string]: MediaTypeObject;
15
+ };
16
+ description?: string;
17
+ required?: string[] | boolean;
18
+ };
19
+ }
20
+ export declare function createRequestSchema({ title, body, ...rest }: Props): string | undefined;
21
+ export {};