docusaurus-theme-openapi-docs 0.0.0-567 → 0.0.0-569
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.
|
@@ -30,6 +30,10 @@ import styles from "./styles.module.css";
|
|
|
30
30
|
function ParamsItem({
|
|
31
31
|
param: { description, example, examples, name, required, schema },
|
|
32
32
|
}) {
|
|
33
|
+
if (!schema || !schema?.type) {
|
|
34
|
+
schema = { type: "any" };
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
const renderSchemaName = guard(schema, (schema) => (
|
|
34
38
|
<span className={styles.schemaName}> {getSchemaName(schema)}</span>
|
|
35
39
|
));
|
|
@@ -30,6 +30,10 @@ import styles from "./styles.module.css";
|
|
|
30
30
|
function ParamsItem({
|
|
31
31
|
param: { description, example, examples, name, required, schema },
|
|
32
32
|
}) {
|
|
33
|
+
if (!schema || !schema?.type) {
|
|
34
|
+
schema = { type: "any" };
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
const renderSchemaName = guard(schema, (schema) => (
|
|
34
38
|
<span className={styles.schemaName}> {getSchemaName(schema)}</span>
|
|
35
39
|
));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-theme-openapi-docs",
|
|
3
3
|
"description": "OpenAPI theme for Docusaurus.",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-569",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"buffer": "^6.0.3",
|
|
52
52
|
"clsx": "^1.1.1",
|
|
53
53
|
"crypto-js": "^4.1.1",
|
|
54
|
-
"docusaurus-plugin-openapi-docs": "0.0.0-
|
|
54
|
+
"docusaurus-plugin-openapi-docs": "0.0.0-569",
|
|
55
55
|
"file-saver": "^2.0.5",
|
|
56
56
|
"immer": "^9.0.7",
|
|
57
57
|
"lodash": "^4.17.20",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=14"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "4b50df749f384af595fab65cf8fa687ad612d84e"
|
|
78
78
|
}
|
|
@@ -30,6 +30,10 @@ import styles from "./styles.module.css";
|
|
|
30
30
|
function ParamsItem({
|
|
31
31
|
param: { description, example, examples, name, required, schema },
|
|
32
32
|
}) {
|
|
33
|
+
if (!schema || !schema?.type) {
|
|
34
|
+
schema = { type: "any" };
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
const renderSchemaName = guard(schema, (schema) => (
|
|
34
38
|
<span className={styles.schemaName}> {getSchemaName(schema)}</span>
|
|
35
39
|
));
|