https://cgi-italy.github.io/insula/schemas/v1.1.1/common/dataset-variable-domain.schema.json#/$defs/categoricalDomain
Definition of a categorical variable domain
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | dataset-variable-domain.schema.json* |
object
(Categorical domain)
{
"values": [
{
"value": 0,
"label": "First"
},
{
"value": 1,
"label": "Second"
}
]
}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
values | array |
Required | cannot be null | Dataset variable domain |
noData | number |
Optional | cannot be null | Dataset variable domain |
The domain allowed values
values
is required
Type: object[]
(Categorical domain item)
cannot be null
defined in: Dataset variable domain
object[]
(Categorical domain item)
minimum number of items: the minimum number of items for this array is: 1
unique items: all items in this array must be unique. Duplicates are not allowed.
The data domain no data value
noData
is optional
Type: number
(Domain no data value)
cannot be null
defined in: Dataset variable domain
number
(Domain no data value)