docusaurus-plugin-openapi-docs 0.0.0-574 → 0.0.0-576
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/index.js +3 -0
- package/lib/openapi/openapi.js +6 -0
- package/lib/options.js +1 -0
- package/lib/types.d.ts +1 -0
- package/package.json +2 -2
- package/src/index.ts +3 -0
- package/src/openapi/openapi.ts +6 -0
- package/src/options.ts +1 -0
- package/src/types.ts +1 -0
package/lib/index.js
CHANGED
package/lib/openapi/openapi.js
CHANGED
|
@@ -173,6 +173,9 @@ function createItems(openapiData, options, sidebarOptions) {
|
|
|
173
173
|
.replace(/\s+$/, "")
|
|
174
174
|
: "",
|
|
175
175
|
...((options === null || options === void 0 ? void 0 : options.proxy) && { proxy: options.proxy }),
|
|
176
|
+
...((options === null || options === void 0 ? void 0 : options.hideSendButton) && {
|
|
177
|
+
hide_send_button: options.hideSendButton,
|
|
178
|
+
}),
|
|
176
179
|
},
|
|
177
180
|
api: {
|
|
178
181
|
...defaults,
|
|
@@ -264,6 +267,9 @@ function createItems(openapiData, options, sidebarOptions) {
|
|
|
264
267
|
.replace(/\s+$/, "")
|
|
265
268
|
: "",
|
|
266
269
|
...((options === null || options === void 0 ? void 0 : options.proxy) && { proxy: options.proxy }),
|
|
270
|
+
...((options === null || options === void 0 ? void 0 : options.hideSendButton) && {
|
|
271
|
+
hide_send_button: options.hideSendButton,
|
|
272
|
+
}),
|
|
267
273
|
},
|
|
268
274
|
api: {
|
|
269
275
|
...defaults,
|
package/lib/options.js
CHANGED
|
@@ -25,6 +25,7 @@ exports.OptionsSchema = utils_validation_1.Joi.object({
|
|
|
25
25
|
outputDir: utils_validation_1.Joi.string().required(),
|
|
26
26
|
template: utils_validation_1.Joi.string(),
|
|
27
27
|
downloadUrl: utils_validation_1.Joi.string(),
|
|
28
|
+
hideSendButton: utils_validation_1.Joi.boolean(),
|
|
28
29
|
sidebarOptions: sidebarOptions,
|
|
29
30
|
version: utils_validation_1.Joi.string().when("versions", {
|
|
30
31
|
is: utils_validation_1.Joi.exist(),
|
package/lib/types.d.ts
CHANGED
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-576",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=14"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "c493a8c7f0f3ee3a4e76cc296a1f6703ee5240ff"
|
|
72
72
|
}
|
package/src/index.ts
CHANGED
package/src/openapi/openapi.ts
CHANGED
|
@@ -221,6 +221,9 @@ function createItems(
|
|
|
221
221
|
.replace(/\s+$/, "")
|
|
222
222
|
: "",
|
|
223
223
|
...(options?.proxy && { proxy: options.proxy }),
|
|
224
|
+
...(options?.hideSendButton && {
|
|
225
|
+
hide_send_button: options.hideSendButton,
|
|
226
|
+
}),
|
|
224
227
|
},
|
|
225
228
|
api: {
|
|
226
229
|
...defaults,
|
|
@@ -338,6 +341,9 @@ function createItems(
|
|
|
338
341
|
.replace(/\s+$/, "")
|
|
339
342
|
: "",
|
|
340
343
|
...(options?.proxy && { proxy: options.proxy }),
|
|
344
|
+
...(options?.hideSendButton && {
|
|
345
|
+
hide_send_button: options.hideSendButton,
|
|
346
|
+
}),
|
|
341
347
|
},
|
|
342
348
|
api: {
|
|
343
349
|
...defaults,
|
package/src/options.ts
CHANGED
|
@@ -27,6 +27,7 @@ export const OptionsSchema = Joi.object({
|
|
|
27
27
|
outputDir: Joi.string().required(),
|
|
28
28
|
template: Joi.string(),
|
|
29
29
|
downloadUrl: Joi.string(),
|
|
30
|
+
hideSendButton: Joi.boolean(),
|
|
30
31
|
sidebarOptions: sidebarOptions,
|
|
31
32
|
version: Joi.string().when("versions", {
|
|
32
33
|
is: Joi.exist(),
|