SchemaExt extension Extensions

Extension on the Schema class which provides a useful suite of methods to work with the Schema class.

on

Methods

newDocument(String label) SchemaDocument
Converts a Schema to a base SchemaDocument with its fields being set to the associated Kind from the underlying definition.
printToConsole() → void
Prints the Schema to the console.
validate(SchemaDocument doc) bool
Validates if all fields of the provided doc match the Schema fields.