aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2019-12-22 04:41:43 +0100
committerpacien2019-12-22 04:41:43 +0100
commit65465dd7d76b5729b62e39711004529e8d444241 (patch)
treeb679e2d8d35dc62729ae9808fc591e70a53f3ec0
parente34be1261d9219e5b2b92ebe271f609f11d55f63 (diff)
downloadldgallery-65465dd7d76b5729b62e39711004529e8d444241.tar.gz
make thumbnail field nullable
-rw-r--r--design-notes.md2
-rw-r--r--example/index.json10
2 files changed, 6 insertions, 6 deletions
diff --git a/design-notes.md b/design-notes.md
index bd8ca60..eabd50e 100644
--- a/design-notes.md
+++ b/design-notes.md
@@ -132,7 +132,7 @@ Serialised item structure:
132 ], 132 ],
133 133
134 "path": "[resource path]", 134 "path": "[resource path]",
135 "thumbnail": { "path": "[resource path]" }, 135 "thumbnail": "[resource path | null]"},
136 136
137 137
138 "_comment": "type-dependent", 138 "_comment": "type-dependent",
diff --git a/example/index.json b/example/index.json
index 741760c..d693f7b 100644
--- a/example/index.json
+++ b/example/index.json
@@ -19,7 +19,7 @@
19 "mountain" 19 "mountain"
20 ], 20 ],
21 "path": "/", 21 "path": "/",
22 "thumbnail": { "path": "/thumbnails/_DSC8808-1.jpg" }, 22 "thumbnail": null,
23 "properties": { 23 "properties": {
24 "type": "directory", 24 "type": "directory",
25 "items": [ 25 "items": [
@@ -34,7 +34,7 @@
34 "book-shop" 34 "book-shop"
35 ], 35 ],
36 "path": "/items/_DSC8808-1.jpg", 36 "path": "/items/_DSC8808-1.jpg",
37 "thumbnail": { "path": "/thumbnails/_DSC8808-1.jpg" }, 37 "thumbnail": "/thumbnails/_DSC8808-1.jpg",
38 "properties": { 38 "properties": {
39 "type": "image", 39 "type": "image",
40 "filesize": 987, 40 "filesize": 987,
@@ -57,7 +57,7 @@
57 "mountain" 57 "mountain"
58 ], 58 ],
59 "path": "/items/Glacier 3000", 59 "path": "/items/Glacier 3000",
60 "thumbnail": { "path": "/thumbnails/Glacier 3000/_DSC5475.jpg" }, 60 "thumbnail": null,
61 "properties": { 61 "properties": {
62 "type": "directory", 62 "type": "directory",
63 "items": [ 63 "items": [
@@ -75,7 +75,7 @@
75 "trees" 75 "trees"
76 ], 76 ],
77 "path": "/items/Glacier 3000/_DSC5475.jpg", 77 "path": "/items/Glacier 3000/_DSC5475.jpg",
78 "thumbnail": { "path": "/thumbnails/Glacier 3000/_DSC5475.jpg" }, 78 "thumbnail": "/thumbnails/Glacier 3000/_DSC5475.jpg",
79 "properties": { 79 "properties": {
80 "type": "image", 80 "type": "image",
81 "filesize": 355, 81 "filesize": 355,
@@ -96,7 +96,7 @@
96 "mountain" 96 "mountain"
97 ], 97 ],
98 "path": "/items/Glacier 3000/_DSC5542.jpg", 98 "path": "/items/Glacier 3000/_DSC5542.jpg",
99 "thumbnail": { "path": "/thumbnails/Glacier 3000/_DSC5542.jpg" }, 99 "thumbnail": "/thumbnails/Glacier 3000/_DSC5542.jpg",
100 "properties": { 100 "properties": {
101 "type": "image", 101 "type": "image",
102 "filesize": 447, 102 "filesize": 447,