Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set additionalProperties false for CFN objects #764

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Apr 7, 2021

This commit adds a CfnMapper that defaults the additionalProperties
property to false for named entries in a schema's definitions that
are of the object type. This is recommended behavior by CloudFormation
and, if not present, results in a warning when developing a resource.

Fixes #750

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This commit adds a CfnMapper that defaults the `additionalProperties`
property to `false` for named entries in a schema's `definitions` that
are of the `object` type. This is recommended behavior by CloudFormation
and, if not present, results in a warning when developing a resource.
@kstich kstich merged commit 744875e into main Apr 8, 2021
@kstich kstich deleted the cfn_object_additionalProperties branch April 8, 2021 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

smithy-aws-cloudformation-traits does not set additionalProperties: false on all object types
3 participants