Skip to content

Schema

Defined in: core/build/schema/Schema.d.ts:8

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

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

optional $schema: string

Defined in: core/build/schema/Schema.d.ts:12

URL of profile (optional)


optional description: string

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

Description of schema (optional)


fields: Field[]

Defined in: core/build/schema/Schema.d.ts:28

Fields in this schema (required)


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

Defined in: core/build/schema/Schema.d.ts:33

Field matching rule (optional) Default: “exact”


optional foreignKeys: ForeignKey[]

Defined in: core/build/schema/Schema.d.ts:55

Foreign key relationships (optional)


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

Defined in: core/build/schema/Schema.d.ts:40

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 name: string

Defined in: core/build/schema/Schema.d.ts:16

Name of schema (optional)


optional primaryKey: string[]

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

Fields uniquely identifying each row (optional)


optional title: string

Defined in: core/build/schema/Schema.d.ts:20

Title of schema (optional)


optional uniqueKeys: string[][]

Defined in: core/build/schema/Schema.d.ts:51

Field combinations that must be unique (optional)