Skip to content

Schema

Defined in: core/schema/Schema.ts:9

Table Schema definition Based on the specification at https://datapackage.org/standard/table-schema/

[key: `${string}:${string}`]: any

optional $schema: string

Defined in: core/schema/Schema.ts:18

URL of schema (optional)


fields: Field[]

Defined in: core/schema/Schema.ts:13

Fields in this schema (required)


optional fieldsMatch: "exact" | "equal" | "subset" | "superset" | "partial"

Defined in: core/schema/Schema.ts:24

Field matching rule (optional) Default: “exact”


optional foreignKeys: ForeignKey[]

Defined in: core/schema/Schema.ts:47

Foreign key relationships (optional)


optional missingValues: (string | { label: string; value: string; })[]

Defined in: core/schema/Schema.ts:32

Values representing missing data (optional) Default: [""] Can be a simple array of strings or an array of {value, label} objects where label provides context for why the data is missing


optional primaryKey: string[]

Defined in: core/schema/Schema.ts:37

Fields uniquely identifying each row (optional)


optional uniqueKeys: string[][]

Defined in: core/schema/Schema.ts:42

Field combinations that must be unique (optional)