Skip to content

StringField

Defined in: core/build/field/types/String.d.ts:5

String field type

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

optional categories: string[] | object[]

Defined in: core/build/field/types/String.d.ts:22

Categories for enum values Can be an array of string values or an array of {value, label} objects


optional categoriesOrdered: boolean

Defined in: core/build/field/types/String.d.ts:29

Whether categories should be considered to have a natural order


optional constraints: StringConstraints

Defined in: core/build/field/types/Base.d.ts:42

Validation constraints applied to values

BaseField.constraints


optional description: string

Defined in: core/build/field/types/Base.d.ts:17

Human-readable description

BaseField.description


optional example: any

Defined in: core/build/field/types/Base.d.ts:21

Example value for this field

BaseField.example


optional examples: any[]

Defined in: core/build/field/types/Base.d.ts:25

Examples for this field

BaseField.examples


optional format: "email" | "uri" | "binary" | "uuid"

Defined in: core/build/field/types/String.d.ts:17

Format of the string

  • email: valid email address
  • uri: valid URI
  • binary: base64 encoded string
  • uuid: valid UUID string

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

Defined in: core/build/field/types/Base.d.ts:35

Values representing missing data for this field Can be a simple array of strings or an array of {value, label} objects where label provides context for why the data is missing

BaseField.missingValues


name: string

Defined in: core/build/field/types/Base.d.ts:9

Name of the field matching the column name

BaseField.name


optional rdfType: string

Defined in: core/build/field/types/Base.d.ts:29

URI for semantic type (RDF)

BaseField.rdfType


optional title: string

Defined in: core/build/field/types/Base.d.ts:13

Human-readable title

BaseField.title


type: "string"

Defined in: core/build/field/types/String.d.ts:9

Field type - discriminator property