Skip to content

Emit events when traits are changed#561

Merged
mtdowling merged 3 commits intomasterfrom
smithy-diff-trait-changed
Sep 11, 2020
Merged

Emit events when traits are changed#561
mtdowling merged 3 commits intomasterfrom
smithy-diff-trait-changed

Conversation

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