Skip to content

Commit

Permalink
fix: Cpp gen
Browse files Browse the repository at this point in the history
  • Loading branch information
kpears201 committed Nov 20, 2024
1 parent 2ca527f commit 3349a8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/macrofier/types.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,10 @@ const insertObjectMacros = (content, schema, module, title, property, options) =
}
const schemaShape = indent + getSchemaShape(localizedProp, module, options2).replace(/\n/gms, '\n' + indent)

const type = localizedProp.type === 'object' ? getSchemaShape(localizedProp, module, { ...options2, type: true }): getSchemaType(localizedProp, module, options2)
let type = getSchemaType(localizedProp, module, options2)
if (type === 'object') {
type = getSchemaShape(localizedProp, module, { ...options2, type: true })
}
// don't push properties w/ unsupported types
if (type) {
const description = getSchemaDescription(prop, module)
Expand Down

0 comments on commit 3349a8f

Please sign in to comment.