From ef64682b40be479ecff91c19d406fff10f9cc688 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 2 Sep 2016 11:29:01 -0400 Subject: rename captioned-image-list to gallery, closes #3 --- app/node_modules/okschema/index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/node_modules/okschema') diff --git a/app/node_modules/okschema/index.js b/app/node_modules/okschema/index.js index b3d4cc2..0048fc5 100644 --- a/app/node_modules/okschema/index.js +++ b/app/node_modules/okschema/index.js @@ -48,6 +48,14 @@ var types = { }], assertValid: function(spec, value) {} }, + 'gallery': { + isArray: true, + parent: [{ + uri: { type: 'string' }, // TODO Implement URI type + caption: { type: 'string' } + }], + assertValid: function(spec, value) {} + }, // Special type for resource meta information 'meta': { parent: 'string', @@ -78,6 +86,11 @@ var types = { parent: [], assertValid: function(spec, value) {} }, + 'media': { + isArray: true, + parent: [], + assertValid: function(spec, value) {} + }, 'double-captioned-image-list': { isArray: true, parent: [], -- cgit v1.2.3-70-g09d2