Ensures the schema is a valid root schema.
The JSON Type Definition has some rules for the correctness of a schema that go beyond what can be represented in Java's type system. This method will verify these rules, such as ensuring that all references have a corresponding definition, and only valid combinations of JSON Typedef keywords are used.
Throws
InvalidSchemaException
if the schema is not valid
Verifies that this schema is valid
Parameters
root
the root schema
Throws
InvalidSchemaException
if the schema is not valid