Class AddedRequiredMember
java.lang.Object
software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator
software.amazon.smithy.diff.evaluators.AddedRequiredMember
- All Implemented Interfaces:
DiffEvaluator
Validates that no members are newly created with the required trait
(but no default trait) in existing structures.
-
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
-
AddedRequiredMember
public AddedRequiredMember()
-
-
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.
-