From 6557a3d48d7505c8d27a0b0bc12e60ce55b0772a Mon Sep 17 00:00:00 2001 From: Ali Helmy Date: Mon, 14 Oct 2024 19:01:14 +0300 Subject: [PATCH] [Fix] all of items in array for api response --- .../src/markdown/createSchema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.ts index 9f9c58099..2ada69482 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createSchema.ts @@ -683,9 +683,9 @@ function createEdges({ ); } - if (schema.allOf !== undefined) { + if (schema.items?.allOf !== undefined) { const { mergedSchemas }: { mergedSchemas: SchemaObject } = mergeAllOf( - schema.allOf + schema.items?.allOf ); delete schema.allOf; const combinedSchemas = { ...schema, ...mergedSchemas };