From 65465dd7d76b5729b62e39711004529e8d444241 Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 22 Dec 2019 04:41:43 +0100 Subject: make thumbnail field nullable --- design-notes.md | 2 +- example/index.json | 10 +++++----- 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: ], "path": "[resource path]", - "thumbnail": { "path": "[resource path]" }, + "thumbnail": "[resource path | null]"}, "_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 @@ "mountain" ], "path": "/", - "thumbnail": { "path": "/thumbnails/_DSC8808-1.jpg" }, + "thumbnail": null, "properties": { "type": "directory", "items": [ @@ -34,7 +34,7 @@ "book-shop" ], "path": "/items/_DSC8808-1.jpg", - "thumbnail": { "path": "/thumbnails/_DSC8808-1.jpg" }, + "thumbnail": "/thumbnails/_DSC8808-1.jpg", "properties": { "type": "image", "filesize": 987, @@ -57,7 +57,7 @@ "mountain" ], "path": "/items/Glacier 3000", - "thumbnail": { "path": "/thumbnails/Glacier 3000/_DSC5475.jpg" }, + "thumbnail": null, "properties": { "type": "directory", "items": [ @@ -75,7 +75,7 @@ "trees" ], "path": "/items/Glacier 3000/_DSC5475.jpg", - "thumbnail": { "path": "/thumbnails/Glacier 3000/_DSC5475.jpg" }, + "thumbnail": "/thumbnails/Glacier 3000/_DSC5475.jpg", "properties": { "type": "image", "filesize": 355, @@ -96,7 +96,7 @@ "mountain" ], "path": "/items/Glacier 3000/_DSC5542.jpg", - "thumbnail": { "path": "/thumbnails/Glacier 3000/_DSC5542.jpg" }, + "thumbnail": "/thumbnails/Glacier 3000/_DSC5542.jpg", "properties": { "type": "image", "filesize": 447, -- cgit v1.2.3