-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
63 lines (63 loc) · 1.36 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"title": "The Root Schema",
"items": {
"$id": "#/items",
"type": "object",
"title": "The Items Schema",
"required": [
"country",
"emoji",
"flag",
"id"
],
"properties": {
"country": {
"$id": "#/properties/country",
"type": "string",
"title": "The Country Schema",
"default": "",
"examples": [
"United States"
],
"minLength": 4,
"pattern": "^[a-zA-z]+([\\s][a-zA-Z]+)*$"
},
"emoji": {
"$id": "#/properties/emoji",
"type": "string",
"title": "The Emoji Schema",
"default": "",
"examples": [
"\uD83C\uDDFA\uD83C\uDDF8"
],
"minLength": 24,
"maxLength": 24,
"pattern": "^(\\\\u[0-9A-F]{4}){4}$"
},
"flag": {
"$id": "#/properties/flag",
"type": "string",
"title": "The Flag Schema",
"default": "",
"examples": [
"us"
],
"minLength": 2,
"maxLength": 2,
"pattern": "^([a-z]*)$"
},
"id": {
"$id": "#/properties/id",
"type": "integer",
"title": "The Id Schema",
"default": 0,
"examples": [
60
]
}
}
}
}