Class RemovedRequiredTrait

java.lang.Object
software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator
software.amazon.smithy.diff.evaluators.RemovedRequiredTrait
All Implemented Interfaces:
DiffEvaluator

public class RemovedRequiredTrait extends AbstractDiffEvaluator
When removing the required trait, it has to be replaced with the default trait, unless the containing structure is marked with the input trait.
  • Constructor Details

    • RemovedRequiredTrait

      public RemovedRequiredTrait()
  • Method Details

    • evaluate

      public List<software.amazon.smithy.model.validation.ValidationEvent> evaluate(Differences differences)
      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.