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) && ( )}