-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfield.json
64 lines (64 loc) · 2.42 KB
/
field.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Source/query column details",
"description": "Properties for sourcing/querying a column or nested property",
"type": "object",
"properties": {
"name": {
"description": "The name of this field.",
"type": "string"
},
"dataType": {
"description": "The data type for this field.",
"$ref": "entityDataType.json#/EntityDataType"
},
"labelAlias": {
"description": "A pre-localized identifier used to label/name this column.",
"type": "string"
},
"queryable": {
"description": "Indicates whether this column can be used in a query.",
"type": "boolean"
},
"queryOnly": {
"description": "Indicates whether this column can be used for querying only. If true, the column can be used in a query but cannot be included in results.",
"type": "boolean"
},
"source": {
"description": "Reference to the root entity type column, from where the values of this column are sourced.",
"$ref": "sourceColumn.json"
},
"valueSourceApi": {
"description": "Configuration defining where the available values for a column can be accessed",
"$ref": "valueSourceApi.json"
},
"valueGetter": {
"description": "Configuration defining how to fetch values of this column from the underlying datasource.",
"type": "string"
},
"filterValueGetter": {
"description": "Configuration defining how to filter values of this column from the underlying datasource when indexed values aren't very user-friendly.",
"type": "string"
},
"idColumnName": {
"description": "Name of the corresponding ID column, if this column contains the value of an ID.",
"type": "string"
},
"valueFunction": {
"description": "Configuration defining how to transform a static value for comparison with values produced by the filterValueGetter. This is useful when the filterValueGetter does extra processing that is not visible to the user. The static value can be referenced with ':value'",
"type": "string"
},
"values": {
"type": "array",
"description": "Array of values for this column",
"items": {
"$ref": "valueWithLabel.json"
}
},
"ecsOnly": {
"description": "Indicates if the field is available only in ECS environments",
"type": "boolean"
}
},
"required": ["name", "dataType"]
}