public interface SchemaValidator
A SchemaValidator has one method, which validates that a Schema
is
compatible with the other schemas provided.
What makes one Schema compatible with another is not part of the interface contract.
Modifier and Type | Method and Description |
---|---|
void |
validate(Schema toValidate,
Iterable<Schema> existing)
Validate one schema against others.
|
void validate(Schema toValidate, Iterable<Schema> existing) throws SchemaValidationException
toValidate
- The schema to validateexisting
- The schemas to validate against, in order from most recent
to latest if applicableSchemaValidationException
- if the schema fails to validate.Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.