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 on unknown trait diffs #1468

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Oct 25, 2022

In smithy-diff, traits that have diff tags applied to their definitions can be properly evaluated on modification. However, it is possible for models to be loaded without trait definitions, meaning no diff evaluation occurs. This commit updates the ModifiedTrait evaluator to emit events when a trait without a definition is not constant across the compared models.

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

In smithy-diff, traits that have `diff` tags applied to their
definitions can be properly evaluated on modification. However,
it is possible for models to be loaded without trait definitions,
meaning no diff evaluation occurs. This commit updates the
ModifiedTrait evaluator to emit events when a trait without a
definition is not constant across the compared models.
@kstich kstich requested a review from a team as a code owner October 25, 2022 21:26
@kstich kstich merged commit b0dced3 into smithy-lang:main Oct 25, 2022
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.

4 participants