Skip to content

Commit

Permalink
Fix ModifiedTrait for traits with breaking change rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Yuan committed Apr 18, 2024
1 parent 7c6228f commit e50fe3e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ private static Map<ShapeId, List<DiffStrategy>> computeDiffStrategies(Model mode
} else if (definition.getBreakingChanges().isEmpty()) {
// Avoid duplicate validation events; only perform the default validation when there are no diff rules.
result.put(shape.getId(), DEFAULT_STRATEGIES);
} else if (!definition.getBreakingChanges().isEmpty()) {
result.put(shape.getId(), Collections.emptyList());
}
}

Expand Down

0 comments on commit e50fe3e

Please sign in to comment.