-
Notifications
You must be signed in to change notification settings - Fork 0
/
common-openingHours.json
86 lines (86 loc) · 1.81 KB
/
common-openingHours.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"title": "openingHours",
"description": "List of one or more objects describing containing time ranges and one or more days of the week they are applicable for.",
"type": "array",
"items": {
"type": "object",
"examples": [
{
"opens": "09:00",
"closes": "17:00",
"dayOfWeek": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday"
]
}
],
"properties": {
"opens": {
"type": "string",
"description": "Opening time on the related weekDays.",
"examples": [
"17:00"
],
"pattern": "^\\d?\\d:\\d\\d$"
},
"closes": {
"type": "string",
"description": "Closing time on the related weekdays.",
"examples": [
"17:00"
],
"pattern": "^\\d?\\d:\\d\\d$"
},
"dayOfWeek": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"description": "One or more weekdays that the open/closing times are applicable for.",
"items": {
"type": "string",
"enum": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday"
],
"description": "A single weekday."
}
}
},
"required": [
"opens",
"closes",
"dayOfWeek"
]
},
"examples": [
[
{
"opens": "13:00",
"closes": "17:00",
"dayOfWeek": [
"monday"
]
},
{
"opens": "09:00",
"closes": "17:00",
"dayOfWeek": [
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday"
]
}
]
]
}