Skip to content

Commit

Permalink
CPPSDK: check additionalProperties case well before excluding content
Browse files Browse the repository at this point in the history
  • Loading branch information
HaseenaSainul committed Nov 6, 2023
1 parent d22a212 commit 8266d8f
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 @@ -338,7 +338,7 @@ const insertObjectMacros = (content, schema, module, title, property, options) =
content = content.replace(regex, properties.join('\n'))
.replace(/\$\{level}/g, options.parentLevel > 0 ? options.parentLevel : '')

if (!schema.properties && ! schema.propertyNames) {
if (!schema.properties && !schema.propertyNames && !schema.additionalProperties) {
content = !schema.additionalProperties ? getTemplate(path.join(options.templateDir, 'object-empty-property')) : ''
}
})
Expand Down

0 comments on commit 8266d8f

Please sign in to comment.