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

Emit events when traits are changed #561

Merged
merged 3 commits into from
Sep 11, 2020
Merged

Conversation

mtdowling
Copy link
Member

Smithy-diff previously did not emit validation events when a trait was
added, removed, or changed unless the trait was marked with one of a few
special tags. This commit updates smithy-diff to emit a NOTE when a
trait is added or changed and a WARNING when a trait is removed. This
helps ensure that all trait changes are caught by smithy-diff, while
still allowing more granular control through the tags.

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.

Smithy-diff previously did not emit validation events when a trait was
added, removed, or changed unless the trait was marked with one of a few
special tags. This commit updates smithy-diff to emit a NOTE when a
trait is added or changed and a WARNING when a trait is removed. This
helps ensure that all trait changes are caught by smithy-diff, while
still allowing more granular control through the tags.
mtdowling and others added 2 commits September 11, 2020 12:32
…rs/ModifiedTrait.java

Co-authored-by: Kevin Stich <stickevi@amazon.com>
…rs/ModifiedTraitTest.java

Co-authored-by: Kevin Stich <stickevi@amazon.com>
@mtdowling mtdowling merged commit 6383030 into master Sep 11, 2020
@mtdowling mtdowling deleted the smithy-diff-trait-changed branch September 14, 2020 22:48
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