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

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.
Files changed (54) hide show
  1. package/package.json +2 -2
  2. package/lib/index.d.ts +0 -3
  3. package/lib/index.js +0 -194
  4. package/lib/markdown/createDeprecationNotice.d.ts +0 -6
  5. package/lib/markdown/createDeprecationNotice.js +0 -19
  6. package/lib/markdown/createDescription.d.ts +0 -1
  7. package/lib/markdown/createDescription.js +0 -16
  8. package/lib/markdown/createDetails.d.ts +0 -2
  9. package/lib/markdown/createDetails.js +0 -18
  10. package/lib/markdown/createDetailsSummary.d.ts +0 -2
  11. package/lib/markdown/createDetailsSummary.js +0 -18
  12. package/lib/markdown/createFullWidthTable.d.ts +0 -2
  13. package/lib/markdown/createFullWidthTable.js +0 -18
  14. package/lib/markdown/createParamsDetails.d.ts +0 -7
  15. package/lib/markdown/createParamsDetails.js +0 -44
  16. package/lib/markdown/createParamsTable.d.ts +0 -7
  17. package/lib/markdown/createParamsTable.js +0 -80
  18. package/lib/markdown/createRequestBodyDetails.d.ts +0 -6
  19. package/lib/markdown/createRequestBodyDetails.js +0 -14
  20. package/lib/markdown/createRequestBodyTable.d.ts +0 -6
  21. package/lib/markdown/createRequestBodyTable.js +0 -14
  22. package/lib/markdown/createSchemaDetails.d.ts +0 -14
  23. package/lib/markdown/createSchemaDetails.js +0 -241
  24. package/lib/markdown/createSchemaTable.d.ts +0 -14
  25. package/lib/markdown/createSchemaTable.js +0 -217
  26. package/lib/markdown/createStatusCodes.d.ts +0 -6
  27. package/lib/markdown/createStatusCodes.js +0 -47
  28. package/lib/markdown/createVersionBadge.d.ts +0 -1
  29. package/lib/markdown/createVersionBadge.js +0 -20
  30. package/lib/markdown/index.d.ts +0 -3
  31. package/lib/markdown/index.js +0 -43
  32. package/lib/markdown/schema.d.ts +0 -3
  33. package/lib/markdown/schema.js +0 -100
  34. package/lib/markdown/schema.test.d.ts +0 -1
  35. package/lib/markdown/schema.test.js +0 -171
  36. package/lib/markdown/utils.d.ts +0 -7
  37. package/lib/markdown/utils.js +0 -33
  38. package/lib/openapi/createExample.d.ts +0 -2
  39. package/lib/openapi/createExample.js +0 -113
  40. package/lib/openapi/index.d.ts +0 -1
  41. package/lib/openapi/index.js +0 -12
  42. package/lib/openapi/openapi.d.ts +0 -11
  43. package/lib/openapi/openapi.js +0 -231
  44. package/lib/openapi/openapi.test.d.ts +0 -1
  45. package/lib/openapi/openapi.test.js +0 -33
  46. package/lib/openapi/types.d.ts +0 -332
  47. package/lib/openapi/types.js +0 -8
  48. package/lib/options.d.ts +0 -4
  49. package/lib/options.js +0 -18
  50. package/lib/sidebars/index.d.ts +0 -3
  51. package/lib/sidebars/index.js +0 -89
  52. package/lib/types.d.ts +0 -68
  53. package/lib/types.js +0 -8
  54. package/yarn-error.log +0 -15179
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-348",
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": "0a63473c72f3c60567bae5730ad586f14b2c1080"
64
64
  }
package/lib/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { LoadContext, Plugin } from "@docusaurus/types";
2
- import type { PluginOptions, LoadedContent } from "./types";
3
- export default function pluginOpenAPI(context: LoadContext, options: PluginOptions): Plugin<LoadedContent>;
package/lib/index.js DELETED
@@ -1,194 +0,0 @@
1
- "use strict";
2
- /* ============================================================================
3
- * Copyright (c) Palo Alto Networks
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- * ========================================================================== */
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const fs_1 = __importDefault(require("fs"));
13
- const path_1 = __importDefault(require("path"));
14
- const utils_1 = require("@docusaurus/utils");
15
- const chalk_1 = __importDefault(require("chalk"));
16
- const mustache_1 = require("mustache");
17
- const markdown_1 = require("./markdown");
18
- const openapi_1 = require("./openapi");
19
- const sidebars_1 = __importDefault(require("./sidebars"));
20
- function pluginOpenAPI(context, options) {
21
- let { config } = options;
22
- let { siteDir } = context;
23
- async function generateApiDocs(options) {
24
- let { specPath, outputDir, template, sidebarOptions } = options;
25
- const contentPath = path_1.default.resolve(siteDir, specPath);
26
- try {
27
- const openapiFiles = await (0, openapi_1.readOpenapiFiles)(contentPath, {});
28
- const loadedApi = await (0, openapi_1.processOpenapiFiles)(openapiFiles);
29
- if (!fs_1.default.existsSync(outputDir)) {
30
- try {
31
- fs_1.default.mkdirSync(outputDir, { recursive: true });
32
- console.log(chalk_1.default.green(`Successfully created "${outputDir}"`));
33
- }
34
- catch (err) {
35
- console.error(chalk_1.default.red(`Failed to create "${outputDir}"`), chalk_1.default.yellow(err));
36
- }
37
- }
38
- // TODO: figure out better way to set default
39
- if (Object.keys(sidebarOptions !== null && sidebarOptions !== void 0 ? sidebarOptions : {}).length > 0) {
40
- const sidebarSlice = (0, sidebars_1.default)(sidebarOptions, // TODO: find a better way to handle null
41
- options, loadedApi);
42
- const sidebarSliceTemplate = template
43
- ? fs_1.default.readFileSync(template).toString()
44
- : `module.exports = {{{slice}}};`;
45
- const view = (0, mustache_1.render)(sidebarSliceTemplate, {
46
- slice: JSON.stringify(sidebarSlice),
47
- });
48
- if (!fs_1.default.existsSync(`${outputDir}/sidebar.js`)) {
49
- try {
50
- fs_1.default.writeFileSync(`${outputDir}/sidebar.js`, view, "utf8");
51
- console.log(chalk_1.default.green(`Successfully created "${outputDir}/sidebar.js"`));
52
- }
53
- catch (err) {
54
- console.error(chalk_1.default.red(`Failed to write "${outputDir}/sidebar.js"`), chalk_1.default.yellow(err));
55
- }
56
- }
57
- }
58
- const mdTemplate = template
59
- ? fs_1.default.readFileSync(template).toString()
60
- : `---
61
- id: {{{id}}}
62
- sidebar_label: {{{title}}}
63
- {{^api}}
64
- sidebar_position: 0
65
- {{/api}}
66
- hide_title: true
67
- {{#api}}
68
- hide_table_of_contents: true
69
- {{/api}}
70
- {{#json}}
71
- api: {{{json}}}
72
- {{/json}}
73
- {{#api.method}}
74
- sidebar_class_name: "{{{api.method}}} api-method"
75
- {{/api.method}}
76
- ---
77
-
78
- {{{markdown}}}
79
- `;
80
- loadedApi.map(async (item) => {
81
- const markdown = item.type === "api" ? (0, markdown_1.createApiPageMD)(item) : (0, markdown_1.createInfoPageMD)(item);
82
- item.markdown = markdown;
83
- if (item.type === "api") {
84
- item.json = JSON.stringify(item.api);
85
- }
86
- const view = (0, mustache_1.render)(mdTemplate, item);
87
- if (item.type === "api") {
88
- if (!fs_1.default.existsSync(`${outputDir}/${item.id}.api.mdx`)) {
89
- try {
90
- fs_1.default.writeFileSync(`${outputDir}/${item.id}.api.mdx`, view, "utf8");
91
- console.log(chalk_1.default.green(`Successfully created "${outputDir}/${item.id}.api.mdx"`));
92
- }
93
- catch (err) {
94
- console.error(chalk_1.default.red(`Failed to write "${outputDir}/${item.id}.api.mdx"`), chalk_1.default.yellow(err));
95
- }
96
- }
97
- }
98
- // TODO: determine if we actually want/need this
99
- if (item.type === "info") {
100
- if (!fs_1.default.existsSync(`${outputDir}/index.api.mdx`)) {
101
- try {
102
- fs_1.default.writeFileSync(`${outputDir}/index.api.mdx`, view, "utf8");
103
- console.log(chalk_1.default.green(`Successfully created "${outputDir}/index.api.mdx"`));
104
- }
105
- catch (err) {
106
- console.error(chalk_1.default.red(`Failed to write "${outputDir}/index.api.mdx"`), chalk_1.default.yellow(err));
107
- }
108
- }
109
- }
110
- return;
111
- });
112
- return;
113
- }
114
- catch (e) {
115
- console.error(chalk_1.default.red(`Loading of api failed for "${contentPath}"`));
116
- throw e;
117
- }
118
- }
119
- async function cleanApiDocs(options) {
120
- const { outputDir } = options;
121
- const apiDir = path_1.default.join(siteDir, outputDir);
122
- const apiMdxFiles = await (0, utils_1.Globby)(["*.api.mdx"], {
123
- cwd: path_1.default.resolve(apiDir),
124
- });
125
- const sidebarFile = await (0, utils_1.Globby)(["sidebar.js"], {
126
- cwd: path_1.default.resolve(apiDir),
127
- });
128
- apiMdxFiles.map((mdx) => fs_1.default.unlink(`${apiDir}/${mdx}`, (err) => {
129
- if (err) {
130
- console.error(chalk_1.default.red(`Cleanup failed for "${apiDir}/${mdx}"`), chalk_1.default.yellow(err));
131
- }
132
- else {
133
- console.log(chalk_1.default.green(`Cleanup succeeded for "${apiDir}/${mdx}"`));
134
- }
135
- }));
136
- sidebarFile.map((sidebar) => fs_1.default.unlink(`${apiDir}/${sidebar}`, (err) => {
137
- if (err) {
138
- console.error(chalk_1.default.red(`Cleanup failed for "${apiDir}/${sidebar}"`), chalk_1.default.yellow(err));
139
- }
140
- else {
141
- console.log(chalk_1.default.green(`Cleanup succeeded for "${apiDir}/${sidebar}"`));
142
- }
143
- }));
144
- }
145
- return {
146
- name: `docusaurus-plugin-openapi`,
147
- extendCli(cli) {
148
- cli
149
- .command(`gen-api-docs`)
150
- .description(`Generates API Docs mdx and sidebars.`)
151
- .usage("[options] <id key value in plugin config within docusaurus.config.js>")
152
- .arguments("<id>")
153
- .action(async (id) => {
154
- if (id === "all") {
155
- if (config[id]) {
156
- console.error(chalk_1.default.red("Can't use id 'all' for API Doc."));
157
- }
158
- else {
159
- Object.keys(config).forEach(async function (key) {
160
- await generateApiDocs(config[key]);
161
- });
162
- }
163
- }
164
- else if (!config[id]) {
165
- console.error(chalk_1.default.red(`ID ${id} does not exist in openapi-plugin config`));
166
- }
167
- else {
168
- await generateApiDocs(config[id]);
169
- }
170
- });
171
- cli
172
- .command(`clean-api-docs`)
173
- .description(`Clears the Generated API Docs mdx and sidebars.`)
174
- .usage("[options] <id key value in plugin config within docusaurus.config.js>")
175
- .arguments("<id>")
176
- .action(async (id) => {
177
- if (id === "all") {
178
- if (config[id]) {
179
- console.error(chalk_1.default.red("Can't use id 'all' for API Doc."));
180
- }
181
- else {
182
- Object.keys(config).forEach(async function (key) {
183
- await cleanApiDocs(config[key]);
184
- });
185
- }
186
- }
187
- else {
188
- await cleanApiDocs(config[id]);
189
- }
190
- });
191
- },
192
- };
193
- }
194
- exports.default = pluginOpenAPI;
@@ -1,6 +0,0 @@
1
- interface DeprecationNoticeProps {
2
- deprecated?: boolean;
3
- description?: string;
4
- }
5
- export declare function createDeprecationNotice({ deprecated, description, }: DeprecationNoticeProps): string;
6
- export {};
@@ -1,19 +0,0 @@
1
- "use strict";
2
- /* ============================================================================
3
- * Copyright (c) Palo Alto Networks
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- * ========================================================================== */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.createDeprecationNotice = void 0;
10
- const utils_1 = require("./utils");
11
- function createAdmonition({ children }) {
12
- return `:::caution deprecated\n\n${(0, utils_1.render)(children)}\n\n:::`;
13
- }
14
- function createDeprecationNotice({ deprecated, description, }) {
15
- return (0, utils_1.guard)(deprecated, () => createAdmonition({
16
- children: description !== null && description !== void 0 ? description : "This endpoint has been deprecated and may be removed in future versions of the API.",
17
- }));
18
- }
19
- exports.createDeprecationNotice = createDeprecationNotice;
@@ -1 +0,0 @@
1
- export declare function createDescription(description: string | undefined): string;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- /* ============================================================================
3
- * Copyright (c) Palo Alto Networks
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- * ========================================================================== */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.createDescription = void 0;
10
- function createDescription(description) {
11
- if (!description) {
12
- return "";
13
- }
14
- return `\n\n${description}\n\n`;
15
- }
16
- exports.createDescription = createDescription;
@@ -1,2 +0,0 @@
1
- import { Props } from "./utils";
2
- export declare function createDetails({ children, style, ...rest }: Props): string;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /* ============================================================================
3
- * Copyright (c) Palo Alto Networks
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- * ========================================================================== */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.createDetails = void 0;
10
- const utils_1 = require("./utils");
11
- function createDetails({ children, style, ...rest }) {
12
- return (0, utils_1.create)("details", {
13
- style: { ...style },
14
- ...rest,
15
- children,
16
- });
17
- }
18
- exports.createDetails = createDetails;
@@ -1,2 +0,0 @@
1
- import { Props } from "./utils";
2
- export declare function createDetailsSummary({ children, style, ...rest }: Props): string;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /* ============================================================================
3
- * Copyright (c) Palo Alto Networks
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- * ========================================================================== */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.createDetailsSummary = void 0;
10
- const utils_1 = require("./utils");
11
- function createDetailsSummary({ children, style, ...rest }) {
12
- return (0, utils_1.create)("summary", {
13
- style: { ...style },
14
- ...rest,
15
- children,
16
- });
17
- }
18
- exports.createDetailsSummary = createDetailsSummary;
@@ -1,2 +0,0 @@
1
- import { Props } from "./utils";
2
- export declare function createFullWidthTable({ children, style, ...rest }: Props): string;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /* ============================================================================
3
- * Copyright (c) Palo Alto Networks
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- * ========================================================================== */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.createFullWidthTable = void 0;
10
- const utils_1 = require("./utils");
11
- function createFullWidthTable({ children, style, ...rest }) {
12
- return (0, utils_1.create)("table", {
13
- style: { display: "table", width: "100%", ...style },
14
- ...rest,
15
- children,
16
- });
17
- }
18
- exports.createFullWidthTable = createFullWidthTable;
@@ -1,7 +0,0 @@
1
- import { ApiItem } from "../types";
2
- interface Props {
3
- parameters: ApiItem["parameters"];
4
- type: "path" | "query" | "header" | "cookie";
5
- }
6
- export declare function createParamsDetails({ parameters, type }: Props): string | undefined;
7
- export {};
@@ -1,44 +0,0 @@
1
- "use strict";
2
- /* ============================================================================
3
- * Copyright (c) Palo Alto Networks
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- * ========================================================================== */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.createParamsDetails = void 0;
10
- const createDetails_1 = require("./createDetails");
11
- const createDetailsSummary_1 = require("./createDetailsSummary");
12
- const utils_1 = require("./utils");
13
- function createParamsDetails({ parameters, type }) {
14
- if (parameters === undefined) {
15
- return undefined;
16
- }
17
- const params = parameters.filter((param) => (param === null || param === void 0 ? void 0 : param.in) === type);
18
- if (params.length === 0) {
19
- return undefined;
20
- }
21
- return (0, createDetails_1.createDetails)({
22
- style: { marginBottom: "1rem" },
23
- children: [
24
- (0, createDetailsSummary_1.createDetailsSummary)({
25
- children: [
26
- (0, utils_1.create)("strong", {
27
- children: `${type.charAt(0).toUpperCase() + type.slice(1)} Parameters`,
28
- }),
29
- ],
30
- }),
31
- (0, utils_1.create)("div", {
32
- children: [
33
- (0, utils_1.create)("ul", {
34
- children: params.map((param) => (0, utils_1.create)("ParamsItem", {
35
- className: "paramsItem",
36
- param: param,
37
- })),
38
- }),
39
- ],
40
- }),
41
- ],
42
- });
43
- }
44
- exports.createParamsDetails = createParamsDetails;
@@ -1,7 +0,0 @@
1
- import { ApiItem } from "../types";
2
- interface Props {
3
- parameters: ApiItem["parameters"];
4
- type: "path" | "query" | "header" | "cookie";
5
- }
6
- export declare function createParamsTable({ parameters, type }: Props): string | undefined;
7
- export {};
@@ -1,80 +0,0 @@
1
- "use strict";
2
- /* ============================================================================
3
- * Copyright (c) Palo Alto Networks
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- * ========================================================================== */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.createParamsTable = void 0;
10
- const lodash_1 = require("lodash");
11
- const createDescription_1 = require("./createDescription");
12
- const createFullWidthTable_1 = require("./createFullWidthTable");
13
- const schema_1 = require("./schema");
14
- const utils_1 = require("./utils");
15
- function createParamsTable({ parameters, type }) {
16
- if (parameters === undefined) {
17
- return undefined;
18
- }
19
- const params = parameters.filter((param) => (param === null || param === void 0 ? void 0 : param.in) === type);
20
- if (params.length === 0) {
21
- return undefined;
22
- }
23
- return (0, createFullWidthTable_1.createFullWidthTable)({
24
- children: [
25
- (0, utils_1.create)("thead", {
26
- children: (0, utils_1.create)("tr", {
27
- children: (0, utils_1.create)("th", {
28
- style: { textAlign: "left" },
29
- children: `${type.charAt(0).toUpperCase() + type.slice(1)} Parameters`,
30
- }),
31
- }),
32
- }),
33
- (0, utils_1.create)("tbody", {
34
- children: params.map((param) => (0, utils_1.create)("tr", {
35
- children: (0, utils_1.create)("td", {
36
- children: [
37
- (0, utils_1.create)("code", { children: param.name }),
38
- (0, utils_1.guard)(param.schema, (schema) => (0, utils_1.create)("span", {
39
- style: { opacity: "0.6" },
40
- children: ` ${(0, schema_1.getSchemaName)(schema)}`,
41
- })),
42
- (0, utils_1.guard)(param.required, () => [
43
- (0, utils_1.create)("span", {
44
- style: { opacity: "0.6" },
45
- children: " — ",
46
- }),
47
- (0, utils_1.create)("strong", {
48
- style: {
49
- fontSize: "var(--ifm-code-font-size)",
50
- color: "var(--openapi-required)",
51
- },
52
- children: " REQUIRED",
53
- }),
54
- ]),
55
- (0, utils_1.guard)((0, schema_1.getQualifierMessage)(param.schema), (message) => (0, utils_1.create)("div", {
56
- style: { marginTop: "var(--ifm-table-cell-padding)" },
57
- children: (0, createDescription_1.createDescription)(message),
58
- })),
59
- (0, utils_1.guard)(param.description, (description) => (0, utils_1.create)("div", {
60
- style: { marginTop: "var(--ifm-table-cell-padding)" },
61
- children: (0, createDescription_1.createDescription)(description),
62
- })),
63
- (0, utils_1.guard)(param.example, (example) => (0, utils_1.create)("div", {
64
- style: { marginTop: "var(--ifm-table-cell-padding)" },
65
- children: (0, lodash_1.escape)(`Example: ${example}`),
66
- })),
67
- (0, utils_1.guard)(param.examples, (examples) => (0, utils_1.create)("div", {
68
- style: { marginTop: "var(--ifm-table-cell-padding)" },
69
- children: Object.entries(examples).map(([k, v]) => (0, utils_1.create)("div", {
70
- children: (0, lodash_1.escape)(`Example (${k}): ${v.value}`),
71
- })),
72
- })),
73
- ],
74
- }),
75
- })),
76
- }),
77
- ],
78
- });
79
- }
80
- exports.createParamsTable = createParamsTable;
@@ -1,6 +0,0 @@
1
- interface Props {
2
- title: string;
3
- body: any;
4
- }
5
- export declare function createRequestBodyDetails({ title, body }: Props): string | undefined;
6
- export {};
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /* ============================================================================
3
- * Copyright (c) Palo Alto Networks
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- * ========================================================================== */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.createRequestBodyDetails = void 0;
10
- const createSchemaDetails_1 = require("./createSchemaDetails");
11
- function createRequestBodyDetails({ title, body }) {
12
- return (0, createSchemaDetails_1.createSchemaDetails)({ title, body });
13
- }
14
- exports.createRequestBodyDetails = createRequestBodyDetails;
@@ -1,6 +0,0 @@
1
- interface Props {
2
- title: string;
3
- body: any;
4
- }
5
- export declare function createRequestBodyTable({ title, body }: Props): string | undefined;
6
- export {};
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /* ============================================================================
3
- * Copyright (c) Palo Alto Networks
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- * ========================================================================== */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.createRequestBodyTable = void 0;
10
- const createSchemaTable_1 = require("./createSchemaTable");
11
- function createRequestBodyTable({ title, body }) {
12
- return (0, createSchemaTable_1.createSchemaTable)({ title, body });
13
- }
14
- exports.createRequestBodyTable = createRequestBodyTable;
@@ -1,14 +0,0 @@
1
- import { MediaTypeObject } from "../openapi/types";
2
- interface Props {
3
- style?: any;
4
- title: string;
5
- body: {
6
- content?: {
7
- [key: string]: MediaTypeObject;
8
- };
9
- description?: string;
10
- required?: boolean;
11
- };
12
- }
13
- export declare function createSchemaDetails({ title, body, ...rest }: Props): string | undefined;
14
- export {};