Declarative spec describing what is well-formed in a given data format — the rule book inspectDataModel validates a DataModel against. Plug-in inspections that want richer constraints can read additional fields off the schema via TS declaration merging.

interface DataFormatSchema {
    description?: string;
    id: string;
    objectTypes?: { [typeId: string]: ObjectTypeSpec };
    relationshipTypes?: { [typeId: string]: RelationshipTypeSpec };
}

Properties

description?: string
id: string

Compared against DataObject.schema and Relationship.schema by schemaTagging.

objectTypes?: { [typeId: string]: ObjectTypeSpec }

Allowed DataObject types. Empty / missing disables type registration checks.

relationshipTypes?: { [typeId: string]: RelationshipTypeSpec }

Allowed Relationship types. Empty / missing disables type registration checks.