docusaurus-plugin-openapi-docs 0.0.0-709 → 0.0.0-710
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.
|
@@ -610,9 +610,16 @@ function createNodes(schema, schemaType) {
|
|
|
610
610
|
style: {
|
|
611
611
|
marginTop: ".5rem",
|
|
612
612
|
marginBottom: ".5rem",
|
|
613
|
-
marginLeft: "1rem",
|
|
614
613
|
},
|
|
615
|
-
children:
|
|
614
|
+
children: [
|
|
615
|
+
(0, createDescription_1.createDescription)(schema.type),
|
|
616
|
+
(0, utils_1.guard)((0, schema_1.getQualifierMessage)(schema), (message) => (0, utils_1.create)("div", {
|
|
617
|
+
style: {
|
|
618
|
+
paddingTop: "1rem",
|
|
619
|
+
},
|
|
620
|
+
children: (0, createDescription_1.createDescription)(message),
|
|
621
|
+
})),
|
|
622
|
+
],
|
|
616
623
|
});
|
|
617
624
|
}
|
|
618
625
|
// handle circular references
|
|
@@ -621,9 +628,16 @@ function createNodes(schema, schemaType) {
|
|
|
621
628
|
style: {
|
|
622
629
|
marginTop: ".5rem",
|
|
623
630
|
marginBottom: ".5rem",
|
|
624
|
-
marginLeft: "1rem",
|
|
625
631
|
},
|
|
626
|
-
children: [
|
|
632
|
+
children: [
|
|
633
|
+
(0, createDescription_1.createDescription)(schema),
|
|
634
|
+
(0, utils_1.guard)((0, schema_1.getQualifierMessage)(schema), (message) => (0, utils_1.create)("div", {
|
|
635
|
+
style: {
|
|
636
|
+
paddingTop: "1rem",
|
|
637
|
+
},
|
|
638
|
+
children: (0, createDescription_1.createDescription)(message),
|
|
639
|
+
})),
|
|
640
|
+
],
|
|
627
641
|
});
|
|
628
642
|
}
|
|
629
643
|
// Unknown node/schema type should return undefined
|
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-710",
|
|
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": "
|
|
63
|
+
"gitHead": "1dc554823afb9ea950be75ae23047991b8fa1c29"
|
|
64
64
|
}
|
|
@@ -35,13 +35,7 @@ Array [
|
|
|
35
35
|
Array [
|
|
36
36
|
</div>
|
|
37
37
|
</li>
|
|
38
|
-
<div
|
|
39
|
-
style={{
|
|
40
|
-
marginTop: \\".5rem\\",
|
|
41
|
-
marginBottom: \\".5rem\\",
|
|
42
|
-
marginLeft: \\"1rem\\",
|
|
43
|
-
}}
|
|
44
|
-
>
|
|
38
|
+
<div style={{ marginTop: \\".5rem\\", marginBottom: \\".5rem\\" }}>
|
|
45
39
|
string
|
|
46
40
|
</div>
|
|
47
41
|
<li>
|
|
@@ -57,35 +51,17 @@ Array [
|
|
|
57
51
|
</li>
|
|
58
52
|
</TabItem>
|
|
59
53
|
<TabItem label={\\"MOD3\\"} value={\\"2-item-properties\\"}>
|
|
60
|
-
<div
|
|
61
|
-
style={{
|
|
62
|
-
marginTop: \\".5rem\\",
|
|
63
|
-
marginBottom: \\".5rem\\",
|
|
64
|
-
marginLeft: \\"1rem\\",
|
|
65
|
-
}}
|
|
66
|
-
>
|
|
54
|
+
<div style={{ marginTop: \\".5rem\\", marginBottom: \\".5rem\\" }}>
|
|
67
55
|
boolean
|
|
68
56
|
</div>
|
|
69
57
|
</TabItem>
|
|
70
58
|
<TabItem label={\\"MOD4\\"} value={\\"3-item-properties\\"}>
|
|
71
|
-
<div
|
|
72
|
-
style={{
|
|
73
|
-
marginTop: \\".5rem\\",
|
|
74
|
-
marginBottom: \\".5rem\\",
|
|
75
|
-
marginLeft: \\"1rem\\",
|
|
76
|
-
}}
|
|
77
|
-
>
|
|
59
|
+
<div style={{ marginTop: \\".5rem\\", marginBottom: \\".5rem\\" }}>
|
|
78
60
|
number
|
|
79
61
|
</div>
|
|
80
62
|
</TabItem>
|
|
81
63
|
<TabItem label={\\"MOD5\\"} value={\\"4-item-properties\\"}>
|
|
82
|
-
<div
|
|
83
|
-
style={{
|
|
84
|
-
marginTop: \\".5rem\\",
|
|
85
|
-
marginBottom: \\".5rem\\",
|
|
86
|
-
marginLeft: \\"1rem\\",
|
|
87
|
-
}}
|
|
88
|
-
>
|
|
64
|
+
<div style={{ marginTop: \\".5rem\\", marginBottom: \\".5rem\\" }}>
|
|
89
65
|
string
|
|
90
66
|
</div>
|
|
91
67
|
</TabItem>
|
|
@@ -817,9 +817,18 @@ export function createNodes(
|
|
|
817
817
|
style: {
|
|
818
818
|
marginTop: ".5rem",
|
|
819
819
|
marginBottom: ".5rem",
|
|
820
|
-
marginLeft: "1rem",
|
|
821
820
|
},
|
|
822
|
-
children:
|
|
821
|
+
children: [
|
|
822
|
+
createDescription(schema.type),
|
|
823
|
+
guard(getQualifierMessage(schema), (message) =>
|
|
824
|
+
create("div", {
|
|
825
|
+
style: {
|
|
826
|
+
paddingTop: "1rem",
|
|
827
|
+
},
|
|
828
|
+
children: createDescription(message),
|
|
829
|
+
})
|
|
830
|
+
),
|
|
831
|
+
],
|
|
823
832
|
});
|
|
824
833
|
}
|
|
825
834
|
|
|
@@ -829,9 +838,18 @@ export function createNodes(
|
|
|
829
838
|
style: {
|
|
830
839
|
marginTop: ".5rem",
|
|
831
840
|
marginBottom: ".5rem",
|
|
832
|
-
marginLeft: "1rem",
|
|
833
841
|
},
|
|
834
|
-
children: [
|
|
842
|
+
children: [
|
|
843
|
+
createDescription(schema),
|
|
844
|
+
guard(getQualifierMessage(schema), (message) =>
|
|
845
|
+
create("div", {
|
|
846
|
+
style: {
|
|
847
|
+
paddingTop: "1rem",
|
|
848
|
+
},
|
|
849
|
+
children: createDescription(message),
|
|
850
|
+
})
|
|
851
|
+
),
|
|
852
|
+
],
|
|
835
853
|
});
|
|
836
854
|
}
|
|
837
855
|
|