Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion forward_engineering/helpers/typeHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,11 @@ function getAdditionalProperties(data) {
}

if (data.additionalPropControl === 'Boolean') {
return data.additionalProperties || undefined;
/**
* additionalProperties property should be omitted when the value is equal to "true" because it is enabled by default.
* In case the property is missing or false it is explicitly included with "false" value
*/
return data.additionalProperties ? undefined : false;
}

return getAdditionalPropsObject(data);
Expand Down