Interface SchemaValidationStrategy
public interface SchemaValidationStrategy
An interface for validating the compatibility of a single schema against
another.
What makes one schema compatible with another is not defined by the contract.
-
Method Summary
Modifier and TypeMethodDescriptionvalidate(CompatibilityPolicy policy, ParsedSchema toValidate, ParsedSchema existing) Validates that one schema is compatible with another.
-
Method Details
-
validate
Validates that one schema is compatible with another.- Parameters:
policy- The compatibility policy to use for validationtoValidate- The schema to validateexisting- The schema to validate against- Returns:
- List of error message, otherwise empty list
-