Skip to content

Warn don't fail on additional properties#374

Merged
mtdowling merged 1 commit into0.10from
warn-on-additional-properties
Apr 16, 2020
Merged

Warn don't fail on additional properties#374
mtdowling merged 1 commit into0.10from
warn-on-additional-properties

Conversation

@mtdowling
Copy link
Copy Markdown
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