-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathphotos-schema.json
162 lines (162 loc) · 4.76 KB
/
photos-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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://vision.hossainkhan.com/photos-schema.json",
"type": "object",
"title": "The root schema for HK Vision Photos object",
"description": "Contains featured photos for HK Vision.",
"default": {},
"required": [
"source",
"author",
"copyright",
"featured_photos"
],
"additionalProperties": true,
"properties": {
"source": {
"$id": "#/properties/source",
"type": "string",
"title": "The source schema",
"description": "The original source URL of the photos.",
"default": "",
"examples": [
"https://vision.hossainkhan.com/"
]
},
"author": {
"$id": "#/properties/author",
"type": "string",
"title": "The author schema",
"description": "Author name of the photos.",
"default": "",
"examples": [
"Hossain Khan"
]
},
"copyright": {
"$id": "#/properties/copyright",
"type": "string",
"title": "The copyright schema",
"description": "Copyright notice for license.",
"default": "",
"examples": [
"All rights reserved."
]
},
"X-NOTE": {
"$id": "#/properties/X-NOTE",
"type": "string",
"title": "The X-NOTE schema",
"description": "Extra note for developers.",
"default": "",
"examples": [
"SINCE THESE IMAGES ARE EXPOSED TO PUBLIC, KEEP THE IMAGES TO ONLY SCENERY. NO PORTRAIT OF INDIVIDUAL PERSON."
]
},
"X-JSON-VALIDATOR": {
"$id": "#/properties/X-JSON-VALIDATOR",
"type": "string",
"title": "The X-JSON-VALIDATOR schema",
"description": "JSON Validator online URL.",
"default": "",
"examples": [
"https://jsonformatter.curiousconcept.com/"
]
},
"featured_photos": {
"$id": "#/properties/featured_photos",
"type": "array",
"title": "The featured_photos schema",
"description": "List of featured photos.",
"default": [],
"items": {
"$ref": "#/definitions/photo_item"
}
},
"blog_photos": {
"$id": "#/properties/blog_photos",
"type": "array",
"title": "The blog_photos schema",
"description": "List of photos from blog posts.",
"default": [],
"items": {
"$ref": "#/definitions/photo_item"
}
}
},
"definitions": {
"photo_item": {
"type": "object",
"required": [
"title",
"subtitle",
"date",
"web_uri",
"image_src",
"raw_src"
],
"properties": {
"title": {
"$id": "#/properties/featured_photos/items/anyOf/0/properties/title",
"type": "string",
"title": "The title schema",
"description": "Title of the photo.",
"default": "",
"examples": [
"Love ❤ meter"
]
},
"subtitle": {
"$id": "#/properties/featured_photos/items/anyOf/0/properties/subtitle",
"type": "string",
"title": "The subtitle schema",
"description": "Sub title of the photo.",
"default": "",
"examples": [
"f: 5.6, t: 1/320s, l: 47mm, Canon REBEL XTi"
]
},
"date": {
"$id": "#/properties/featured_photos/items/anyOf/0/properties/date",
"type": "string",
"title": "The date schema",
"description": "Date the image was taken.",
"default": "",
"examples": [
"2010-09-05 14:20:56"
]
},
"web_uri": {
"$id": "#/properties/featured_photos/items/anyOf/0/properties/web_uri",
"type": "string",
"title": "The web_uri schema",
"description": "The URL of the photo for external visits.",
"default": "",
"examples": [
"https://vision.hossainkhan.com/project/love-meter"
]
},
"image_src": {
"$id": "#/properties/featured_photos/items/anyOf/0/properties/image_src",
"type": "string",
"title": "The image_src schema",
"description": "Resized image source URL.",
"default": "",
"examples": [
"https://vision.hossainkhan.com/images/front-page/IMG_20100905_1857-love-meter-montreal-landscape-cropped-1600x1100.jpg"
]
},
"raw_src": {
"$id": "#/properties/featured_photos/items/anyOf/0/properties/raw_src",
"type": "string",
"title": "The raw_src schema",
"description": "Raw full size image source URL.",
"default": "",
"examples": [
"https://vision.hossainkhan.com/images/front-page/IMG_20100905_1857-love-meter-montreal-landscape-cropped.jpg"
]
}
}
}
}
}