Wrapper around the raw JSON Schema. It is recommended to use this class instead of the raw JSON Schema as it is more robust to schema changes and provides utility functions.
The raw JSON schema to create the wrapper from.
Returns the list of entity schemas in the schema using the EntitySchema abstraction class.
Returns the list of relation definitions schemas in the schema using the RelationDefinitionSchema abstraction class.
Returns the entity schema for the given entity type if it exists. When using TypeScript, this method can detect if the given type does not exist in the schema.
The entity type string
A new EntitySchema or null if the type does not exist
Finds relations definition schemas in the Schema matching the raw partial relation definition schema given.
Partial raw relation definition schema to match against
Array of matched relation definition schema classes
Generated using TypeDoc
Wrapper around the raw JSON Schema. It is recommended to use this class instead of the raw JSON Schema as it is more robust to schema changes and provides utility functions.