public interface SchemaValidator
Modifier and Type | Method and Description |
---|---|
Compatibility |
compatibilityCheck(String source,
String other)
Checks for compatibility between two schemas @see Compatibility class for types
This method may not be supported for certain formats
|
String |
getFormat() |
boolean |
isValid(String definition)
Verifies if a definition is a valid schema
|
Schema |
match(List<Schema> schemas,
String definition)
Return the Schema that is represented by the definition.
|
boolean isValid(String definition)
definition
- - The textual representation of the schema fileCompatibility compatibilityCheck(String source, String other)
source
- - The textual representation of the schema to testedother
- - The textual representation of the other schema to testedSchema match(List<Schema> schemas, String definition)
schemas
- List of schemas to be testeddefinition
- Textual representation of the schemaString getFormat()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.