diff --git a/docusaurus/src/components/SpecSchema.jsx b/docusaurus/src/components/SpecSchema.jsx index a0cbcbe82980..e481fca19987 100644 --- a/docusaurus/src/components/SpecSchema.jsx +++ b/docusaurus/src/components/SpecSchema.jsx @@ -83,11 +83,11 @@ function isObjectArray(schema) { } function showCollapsible(schema) { - return (schema.type === "array" && schema.items && schema.items.type !== "object") || (schema.type === "object" && schema.properties) || showDescription(schema) + return (schema.type === "object" && schema.properties) || showDescription(schema) } function showDescription(schema) { - return typeof schema.default !== "undefined" || schema.pattern || schema.examples || schema.description || isOneOf(schema); + return typeof schema.default !== "undefined" || schema.pattern || schema.examples || schema.description || isOneOf(schema) || (schema.type === "array" && schema.items && schema.items.type === "object"); } function getIndentStyle(depth) {