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

Warn don't fail on additional properties #374

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

mtdowling
Copy link
Member

This PR updates Smithy's loaders to not fail on additional properties,
but rather, warn. This allows new features to be added in the future
that might not materially change the model but do need new properties
added to shapes (like a new resource method, structure parent, etc).

Further, various traits were emitting warnings both to a logger and to
the validator because they were manually asserting that traits don't
have additional properties. This is unnecessary since this is already
handled automatically for every trait. This commit removes those
redundant checks.

Issue #, if available:

Description of changes:

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

This PR updates Smithy's loaders to not fail on additional properties,
but rather, warn. This allows new features to be added in the future
that might not materially change the model but do need new properties
added to shapes (like a new resource method, structure parent, etc).

Further, various traits were emitting warnings both to a logger and to
the validator because they were manually asserting that traits don't
have additional properties. This is unnecessary since this is already
handled automatically for every trait. This commit removes those
redundant checks.
@mtdowling mtdowling merged commit 12494a4 into 0.10 Apr 16, 2020
@mtdowling mtdowling deleted the warn-on-additional-properties branch April 23, 2020 02:18
@kstich kstich mentioned this pull request Apr 23, 2020
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.

2 participants