docusaurus-theme-openapi-docs 0.0.0-1367 → 0.0.0-1371
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.
|
@@ -1009,7 +1009,11 @@ const SchemaNode = ({ schema: rawSchema, schemaType, schemaPath }) => {
|
|
|
1009
1009
|
workingSchema = (0, normalize_1.mergeAllOf)(schema);
|
|
1010
1010
|
}
|
|
1011
1011
|
if (!workingSchema.discriminator && resolvedDiscriminator) {
|
|
1012
|
-
|
|
1012
|
+
// Clone: getDiscriminator returns a nested branch's discriminator by
|
|
1013
|
+
// reference, and DiscriminatorNode mutates `.mapping` when inferring
|
|
1014
|
+
// variants. Without cloning, a branch that declares its own discriminator
|
|
1015
|
+
// gets a mapping pointing back to itself and recurses forever.
|
|
1016
|
+
workingSchema.discriminator = { ...resolvedDiscriminator };
|
|
1013
1017
|
}
|
|
1014
1018
|
if (workingSchema.discriminator) {
|
|
1015
1019
|
const { discriminator } = workingSchema;
|
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-1371",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/postman-collection": "^3.5.11",
|
|
39
39
|
"@types/react-modal": "^3.16.3",
|
|
40
40
|
"concurrently": "^10.0.3",
|
|
41
|
-
"docusaurus-plugin-openapi-docs": "0.0.0-
|
|
41
|
+
"docusaurus-plugin-openapi-docs": "0.0.0-1371",
|
|
42
42
|
"docusaurus-plugin-sass": "^0.2.6",
|
|
43
43
|
"eslint-plugin-prettier": "^5.5.1"
|
|
44
44
|
},
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"engines": {
|
|
83
83
|
"node": ">=14"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "326f4784079467dd93643d0d022fc6f59ead062a"
|
|
86
86
|
}
|
|
@@ -1120,7 +1120,11 @@ const SchemaNode: React.FC<SchemaProps> = ({
|
|
|
1120
1120
|
workingSchema = mergeAllOf(schema) as SchemaObject;
|
|
1121
1121
|
}
|
|
1122
1122
|
if (!workingSchema.discriminator && resolvedDiscriminator) {
|
|
1123
|
-
|
|
1123
|
+
// Clone: getDiscriminator returns a nested branch's discriminator by
|
|
1124
|
+
// reference, and DiscriminatorNode mutates `.mapping` when inferring
|
|
1125
|
+
// variants. Without cloning, a branch that declares its own discriminator
|
|
1126
|
+
// gets a mapping pointing back to itself and recurses forever.
|
|
1127
|
+
workingSchema.discriminator = { ...resolvedDiscriminator };
|
|
1124
1128
|
}
|
|
1125
1129
|
|
|
1126
1130
|
if (workingSchema.discriminator) {
|