docusaurus-plugin-openapi-docs 0.0.0-441 → 0.0.0-444
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.
|
@@ -344,7 +344,9 @@ function createDetailsNode(name, schemaName, schema, required) {
|
|
|
344
344
|
style: { opacity: "0.6" },
|
|
345
345
|
children: ` ${schemaName}`,
|
|
346
346
|
}),
|
|
347
|
-
(0, utils_1.guard)(
|
|
347
|
+
(0, utils_1.guard)(Array.isArray(required)
|
|
348
|
+
? required.includes(name)
|
|
349
|
+
: required === true, () => [
|
|
348
350
|
(0, utils_1.create)("strong", {
|
|
349
351
|
style: {
|
|
350
352
|
fontSize: "var(--ifm-code-font-size)",
|
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-444",
|
|
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": "24307a9c7894c1e97aeea3d54dc4976bdfe0d71a"
|
|
72
72
|
}
|
|
@@ -407,15 +407,20 @@ function createDetailsNode(
|
|
|
407
407
|
style: { opacity: "0.6" },
|
|
408
408
|
children: ` ${schemaName}`,
|
|
409
409
|
}),
|
|
410
|
-
guard(
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
410
|
+
guard(
|
|
411
|
+
Array.isArray(required)
|
|
412
|
+
? required.includes(name)
|
|
413
|
+
: required === true,
|
|
414
|
+
() => [
|
|
415
|
+
create("strong", {
|
|
416
|
+
style: {
|
|
417
|
+
fontSize: "var(--ifm-code-font-size)",
|
|
418
|
+
color: "var(--openapi-required)",
|
|
419
|
+
},
|
|
420
|
+
children: " required",
|
|
421
|
+
}),
|
|
422
|
+
]
|
|
423
|
+
),
|
|
419
424
|
],
|
|
420
425
|
}),
|
|
421
426
|
create("div", {
|