Class ChangedMemberOrder

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

public final class ChangedMemberOrder extends AbstractDiffEvaluator
Creates a DANGER event when a structure or union member is added anywhere other than the end of the previous definition or the member order is changed.
  • Constructor Details

    • ChangedMemberOrder

      public ChangedMemberOrder()
  • Method Details

    • evaluate

      public List<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.