docusaurus-plugin-openapi-docs 0.0.0-856 → 0.0.0-862
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.
|
@@ -510,7 +510,7 @@ function createPropertyDiscriminator(name, schemaName, schema, discriminator, re
|
|
|
510
510
|
* Creates the edges or "leaves" of a schema tree. Edges can branch into sub-nodes with createDetails().
|
|
511
511
|
*/
|
|
512
512
|
function createEdges({ name, schema, required, discriminator, }) {
|
|
513
|
-
var _a, _b, _c, _d;
|
|
513
|
+
var _a, _b, _c, _d, _e, _f;
|
|
514
514
|
if (SCHEMA_TYPE === "request") {
|
|
515
515
|
if (schema.readOnly && schema.readOnly === true) {
|
|
516
516
|
return undefined;
|
|
@@ -541,8 +541,8 @@ function createEdges({ name, schema, required, discriminator, }) {
|
|
|
541
541
|
if (((_b = schema.items) === null || _b === void 0 ? void 0 : _b.anyOf) !== undefined || ((_c = schema.items) === null || _c === void 0 ? void 0 : _c.oneOf) !== undefined) {
|
|
542
542
|
return createDetailsNode(name, schemaName, schema, required, schema.nullable);
|
|
543
543
|
}
|
|
544
|
-
if (schema.allOf !== undefined) {
|
|
545
|
-
const { mergedSchemas } = mergeAllOf(schema.allOf);
|
|
544
|
+
if (((_d = schema.items) === null || _d === void 0 ? void 0 : _d.allOf) !== undefined) {
|
|
545
|
+
const { mergedSchemas } = mergeAllOf((_e = schema.items) === null || _e === void 0 ? void 0 : _e.allOf);
|
|
546
546
|
delete schema.allOf;
|
|
547
547
|
const combinedSchemas = { ...schema, ...mergedSchemas };
|
|
548
548
|
if (SCHEMA_TYPE === "request") {
|
|
@@ -570,7 +570,7 @@ function createEdges({ name, schema, required, discriminator, }) {
|
|
|
570
570
|
return createDetailsNode(name, mergedSchemaName, combinedSchemas, required, combinedSchemas.nullable);
|
|
571
571
|
}
|
|
572
572
|
// array of objects
|
|
573
|
-
if (((
|
|
573
|
+
if (((_f = mergedSchemas.items) === null || _f === void 0 ? void 0 : _f.properties) !== undefined) {
|
|
574
574
|
return createDetailsNode(name, mergedSchemaName, combinedSchemas, required, combinedSchemas.nullable);
|
|
575
575
|
}
|
|
576
576
|
return (0, utils_1.create)("SchemaItem", {
|
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-862",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=14"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "55568375fb676dfcd0260043c2b789932e309b89"
|
|
66
66
|
}
|
|
@@ -683,9 +683,9 @@ function createEdges({
|
|
|
683
683
|
);
|
|
684
684
|
}
|
|
685
685
|
|
|
686
|
-
if (schema.allOf !== undefined) {
|
|
686
|
+
if (schema.items?.allOf !== undefined) {
|
|
687
687
|
const { mergedSchemas }: { mergedSchemas: SchemaObject } = mergeAllOf(
|
|
688
|
-
schema.allOf
|
|
688
|
+
schema.items?.allOf
|
|
689
689
|
);
|
|
690
690
|
delete schema.allOf;
|
|
691
691
|
const combinedSchemas = { ...schema, ...mergedSchemas };
|