Schema: {
    fields: Field[];
    missingValues?: string[];
    primaryKey?: string | string[];
}

An object when specifies the schema for a data model.

Notes

This is based on the JSON Table Schema specification: https://specs.frictionlessdata.io/table-schema/

Type declaration

  • Readonly fields: Field[]

    The fields which describe the data model columns.

    Primary key fields are rendered as row header columns.

  • Optional Readonly missingValues?: string[]

    The values to treat as "missing" data.

    Missing values are automatically converted to null.

  • Optional Readonly primaryKey?: string | string[]

    The field names which act as primary keys.

    Primary key fields are rendered as row header columns.