Class ChangedLengthTrait
java.lang.Object
software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator
software.amazon.smithy.diff.evaluators.ChangedLengthTrait
- All Implemented Interfaces:
DiffEvaluator
Detects when the Length trait is made more restrictive by either
raising the min or lowering the max.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List<ValidationEvent>evaluate(Differences differences) Returns validation events given two models and the detected differences between them.protected Optional<BigDecimal>protected Optional<BigDecimal>protected Class<LengthTrait>Methods inherited from class software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator
danger, danger, error, error, getEventId, note, note, warning, warning
-
Constructor Details
-
ChangedLengthTrait
public ChangedLengthTrait()
-
-
Method Details
-
getTraitType
-
getMin
-
getMax
-
evaluate
Description copied from interface:DiffEvaluatorReturns 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.
-