summaryrefslogtreecommitdiff
path: root/app/node_modules/okschema
diff options
context:
space:
mode:
Diffstat (limited to 'app/node_modules/okschema')
-rw-r--r--app/node_modules/okschema/index.js17
1 files changed, 15 insertions, 2 deletions
diff --git a/app/node_modules/okschema/index.js b/app/node_modules/okschema/index.js
index 330ad6b..82aa13f 100644
--- a/app/node_modules/okschema/index.js
+++ b/app/node_modules/okschema/index.js
@@ -63,8 +63,21 @@ var types = {
assertValid: function(spec, value) {}
},
'tag-list': {
- parent: 'string',
- assertValid: function(spec, value) {}
+ parent: [{
+ uri: { type: 'string' },
+ text: { type: 'string' }
+ }],
+ assertValid: function(spec, value) {
+ var message;
+ var actual;
+ if (!value || !value.length) {
+ throw [{
+ message: 'Not an array',
+ expected: JSON.stringify(this.parent),
+ actual: value
+ }];
+ }
+ }
},
'date': {
parent: 'string',