diff --git a/forward_engineering/helpers/typeHelper.js b/forward_engineering/helpers/typeHelper.js index a126c14..684bb7a 100644 --- a/forward_engineering/helpers/typeHelper.js +++ b/forward_engineering/helpers/typeHelper.js @@ -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);