diff --git a/src/macrofier/types.mjs b/src/macrofier/types.mjs index 452ebd43..1ba684d8 100644 --- a/src/macrofier/types.mjs +++ b/src/macrofier/types.mjs @@ -724,7 +724,7 @@ function getSchemaType(schema, module, { destination, templateDir = 'types', lin const theTitle = insertSchemaMacros(namespaceStr + getTemplate(path.join(templateDir, 'title' + suffix)), schema, module, { name: schema.title, parent: getXSchemaGroup(schema, module), recursive: false }) const allocatedProxy = event || result - const title = schema.type === "object" || schema.anyOf || schema.oneOf || Array.isArray(schema.type) && schema.type.includes("object") || schema.enum ? true : false + const title = schema.type === "object" || Array.isArray(schema.type) && schema.type.includes("object") || schema.enum ? true : false if (schema['$ref']) { if (schema['$ref'][0] === '#') {