DocumentFieldSchema interface

Description of the field semantic schema using a JSON Schema style syntax.

Properties

description

Field description.

example

Example field content.

items

Field type schema of each array element.

properties

Named sub-fields of the object field.

type

Semantic data type of the field value.

Property Details

description

Field description.

description?: string

Property Value

string

example

Example field content.

example?: string

Property Value

string

items

Field type schema of each array element.

items?: DocumentFieldSchema

Property Value

properties

Named sub-fields of the object field.

properties?: {[propertyName: string]: DocumentFieldSchema}

Property Value

{[propertyName: string]: DocumentFieldSchema}

type

Semantic data type of the field value.

type: string

Property Value

string