forked from Canadian-Geospatial-Platform/geoview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
48 lines (46 loc) · 1.32 KB
/
schema.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "GeoView Swiper Config Schema",
"type": "object",
"version": 1.0,
"comments": "Configuration for GeoView swiper package.",
"additionalProperties": false,
"properties": {
"orientation": {
"type": "string",
"enum": ["vertical", "horizontal"],
"description": "Orientation of the swiper bar.",
"default": "vertical"
},
"keyboardOffset": {
"type": "number",
"minimum": 10,
"maximum": 100,
"description": "The offset value when swiper is moved from the keyboard.",
"default": 10
},
"layers": {
"type": "array",
"items": {
"type": "string"
}
},
"suportedLanguages": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": ["en", "fr"]
},
"default": ["en", "fr"],
"description": "ISO 639-1 code indicating the languages supported by the configuration file.",
"minItems": 1
},
"version": {
"type": "string",
"enum": ["1.0"],
"description": "The schema version used to validate the configuration file. The schema should enumerate the list of versions accepted by this version of the viewer."
}
},
"required": ["orientation", "layers", "suportedLanguages"]
}