Skip to content

Commit

Permalink
chore: CPP SDK issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinshahfws committed Jun 28, 2024
1 parent adf3f05 commit dd64f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macrofier/types.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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] === '#') {
Expand Down

0 comments on commit dd64f49

Please sign in to comment.