Class ChangedMemberTarget
java.lang.Object
software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator
software.amazon.smithy.diff.evaluators.ChangedMemberTarget
- All Implemented Interfaces:
DiffEvaluator
Checks for changes in the shapes targeted by a member.
If the shape targeted by the member changes from a simple shape to a simple shape of the same type with the same traits, or a list or set that has a member that targets the shame exact shape and has the same traits, then the emitted event is a WARNING. If an enum trait is found on the old or newly targeted shape, then the event is an ERROR, because enum traits typically materialize as named types in codegen. All other changes are ERROR events.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(Differences differences) Returns validation events given two models and the detected differences between them.Methods inherited from class software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator
danger, danger, error, error, getEventId, note, note, warning, warning
-
Constructor Details
-
ChangedMemberTarget
public ChangedMemberTarget()
-
-
Method Details
-
evaluate
Description copied from interface:DiffEvaluator
Returns validation events given two models and the detected differences between them.- Parameters:
differences
- Detected differences.- Returns:
- Returns validation events that are relative to the new model.
-