-
Notifications
You must be signed in to change notification settings - Fork 0
/
common-facet.json
51 lines (51 loc) · 1.16 KB
/
common-facet.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
{
"title": "facet",
"description": "A single facet for a specific filter. Every facet has a human-readable name and total count to show to end-users to drill down search results.",
"type": "object",
"properties": {
"name": {
"$ref": "./common-name.json"
},
"count": {
"type": "integer",
"description": "Total results if the filter is applied with this value (= the key referencing this object)."
},
"children": {
"type": "object",
"description": "Children facets, in the case of filters with a hierarchy.",
"additionalProperties": {
"$ref": "./common-facet.json"
}
}
},
"required": [
"name",
"count"
],
"examples": [
{
"name": {
"nl": "Vlaams-Brabant",
"fr": "Brabant Flamand",
"en": "Flemish Brabant"
},
"count": 22,
"children": {
"gem-leuven": {
"name": {
"nl": "Leuven",
"fr": "Louvain"
},
"count": 17
},
"gem-diest": {
"name": {
"nl": "Diest",
"fr": "Diest"
},
"count": 5
}
}
}
]
}