Schema
Defined in: core/schema/Schema.ts:9
Table Schema definition Based on the specification at https://datapackage.org/standard/table-schema/
Extends
Section titled “Extends”Indexable
Section titled “Indexable”[key
: `${string}:${string}`
]: any
Properties
Section titled “Properties”$schema?
Section titled “$schema?”
optional
$schema:string
Defined in: core/schema/Schema.ts:18
URL of schema (optional)
fields
Section titled “fields”fields:
Field
[]
Defined in: core/schema/Schema.ts:13
Fields in this schema (required)
fieldsMatch?
Section titled “fieldsMatch?”
optional
fieldsMatch:"exact"
|"equal"
|"subset"
|"superset"
|"partial"
Defined in: core/schema/Schema.ts:24
Field matching rule (optional) Default: “exact”
foreignKeys?
Section titled “foreignKeys?”
optional
foreignKeys:ForeignKey
[]
Defined in: core/schema/Schema.ts:47
Foreign key relationships (optional)
missingValues?
Section titled “missingValues?”
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
primaryKey?
Section titled “primaryKey?”
optional
primaryKey:string
[]
Defined in: core/schema/Schema.ts:37
Fields uniquely identifying each row (optional)
uniqueKeys?
Section titled “uniqueKeys?”
optional
uniqueKeys:string
[][]
Defined in: core/schema/Schema.ts:42
Field combinations that must be unique (optional)