From 64dd946f499599118e4b38791fdc69756402386c Mon Sep 17 00:00:00 2001 From: Marc L Date: Thu, 7 Nov 2024 12:43:17 -0600 Subject: [PATCH] Add support for array of types --- .../src/theme/SchemaItem/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaItem/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaItem/index.tsx index ead487674..48ab32d80 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaItem/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaItem/index.tsx @@ -195,7 +195,9 @@ export default function SchemaItem(props: Props) { > {name} - {schemaName} + + {Array.isArray(schemaName) ? schemaName.join(" | ") : schemaName} + {(nullable || required || deprecated) && ( )}