Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.
Fix ModifiedTrait for traits with breaking change rules.
Before this change, if a trait had breaking change rules defined, the diff strategy in ModifiedTrait would eventually resolve the trait as unknown and produce a ModifiedTrait warning on any change.
Overview
Fix ModifiedTrait for traits with breaking change rules.
Before this change, if a trait had breaking change rules defined, the diff strategy in ModifiedTrait would eventually resolve the trait as unknown and produce a ModifiedTrait warning on any change.
Also, apply
@tags(["diff.contents"])
to a structure member of the "all" ModifiedTrait test, which is a no-op.Testing
Tested with
@jsonName
:Model A:
Model B:
Diff events before the change (see duplicate ModifiedTrait event):
Diff events after the change (no duplicate ModifiedTrait event):
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.