Package software.amazon.smithy.diff.evaluators
package software.amazon.smithy.diff.evaluators
-
ClassDescriptionProvides a default diff evaluator implementation with utility methods for emitting events of different severities.A meta-validator that emits a NOTE when an operation resource is added to a service or resource entity.Creates a NOTE event when metadata is added.Emits a warning when an error is added to an operation.Validates that no members are newly created with the required trait (but no default trait) in existing structures.Emits a warning when an error is added to a service.Creates a NOTE event when a shape is added.Creates a NOTE event when a trait definition is added.Emits a NOTE when a new enum value is appended, emits an ERROR when an enum value is removed, emits an ERROR when an enum name changes, and emits an ERROR when a new enum value is inserted before the end of the list of existing values.Detects when the Length trait is made more restrictive by either raising the min or lowering the max.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.Checks for changes in the shapes targeted by a member.Creates a WARNING event when metadata is changed.Validates that only backward compatible changes are made to structure member nullability to ensure that if something was previously nullable to clients then it continue to be nullable and vice versa.Emits an ERROR when the input shape of an operation is changed to another shape.Emits an ERROR when the output shape of an operation is changed to another shape.Detects when the Range trait is made more restrictive by either raising the min or lowering the max.Creates an ERROR event when the identifiers of a resource changes.Creates an ERROR event when the type of a shape changes.Finds breaking changes related to when a trait is added, removed, or updated.TODO: Implement evaluator to find removed authentication schemes.A meta-validator that checks for the removal of an operation or resource binding from a service or resource.Creates a DANGER event when metadata is removed.Emits a warning when an error is removed from an operation.Emits a warning when an error is removed from a service.Creates an ERROR event when a non-private shape is removed.Creates an ERROR event when a trait definition is removed.Creates an ERROR event when a shape is renamed that was already part of the service, when a rename changes for a shape, or when a rename is removed for a shape.Finds breaking changes related to when a trait is added, removed, or updated based on the breakingChanges property of traits.