docusaurus-plugin-openapi-docs 2.2.2 → 2.2.3
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.
|
@@ -440,8 +440,9 @@ function createPropertyDiscriminator(name, schemaName, schema, discriminator, re
|
|
|
440
440
|
if (schema === undefined) {
|
|
441
441
|
return undefined;
|
|
442
442
|
}
|
|
443
|
+
// render as a simple property if there's no mapping
|
|
443
444
|
if (discriminator.mapping === undefined) {
|
|
444
|
-
return
|
|
445
|
+
return createEdges({ name, schema, required });
|
|
445
446
|
}
|
|
446
447
|
return (0, utils_1.create)("div", {
|
|
447
448
|
className: "openapi-discriminator__item openapi-schema__list-item",
|
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": "2.2.
|
|
4
|
+
"version": "2.2.3",
|
|
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": "59298da210f1720615ac258f7b6b386a3e01ecbd"
|
|
64
64
|
}
|
|
@@ -535,8 +535,9 @@ function createPropertyDiscriminator(
|
|
|
535
535
|
return undefined;
|
|
536
536
|
}
|
|
537
537
|
|
|
538
|
+
// render as a simple property if there's no mapping
|
|
538
539
|
if (discriminator.mapping === undefined) {
|
|
539
|
-
return
|
|
540
|
+
return createEdges({ name, schema, required });
|
|
540
541
|
}
|
|
541
542
|
|
|
542
543
|
return create("div", {
|