From e1748418bd909dd4da041569d1c9c05b72390a44 Mon Sep 17 00:00:00 2001 From: Dan Gray Date: Fri, 4 Apr 2014 11:31:55 +0100 Subject: [PATCH 1/2] JSON schema --- bower.json | 2 ++ package.json | 2 +- properties.schema | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 properties.schema diff --git a/bower.json b/bower.json index 53a9927..239477a 100644 --- a/bower.json +++ b/bower.json @@ -8,6 +8,8 @@ ], "description": "A component that displays an image gallery with accompanying text", "main": "/js/adapt-contrib-narrative.js", + "displayName" : "Narrative", + "component" : "narrative", "keywords": [ "adapt-plugin", "adapt-component" diff --git a/package.json b/package.json index 6ffad29..37ef786 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "url": "https://github.com/adaptlearning/adapt-contrib-narrative/issues" }, "devDependencies": { - "karma": "~0.9", + "karma": "~0.10", "karma-mocha": "*", "karma-expect": "*" } diff --git a/properties.schema b/properties.schema new file mode 100644 index 0000000..606f6d7 --- /dev/null +++ b/properties.schema @@ -0,0 +1,41 @@ +{ + "type":"object", + "$schema": "http://json-schema.org/draft-04/schema", + "id": "http://jsonschema.net", + "$ref": "http://localhost/plugins/content/component/model.schema", + "properties":{ + "items": { + "type":"array", + "required":false, + "items": + { + "type":"object", + "properties":{ + "body": { + "type":"string" + }, + "graphic": { + "type":"object", + "properties":{ + "alt": { + "type":"string" + }, + "src": { + "type":"string" + }, + "title": { + "type":"string" + } + } + }, + "strapline": { + "type":"string" + }, + "title": { + "type":"string" + } + } + } + } + } +} \ No newline at end of file From bf0dec791b5f79bdc7b9ad45632c7448bc913520 Mon Sep 17 00:00:00 2001 From: Dan Gray Date: Fri, 4 Apr 2014 12:16:23 +0100 Subject: [PATCH 2/2] Increment version number --- bower.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index 239477a..3ef0e45 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "adapt-contrib-narrative", - "version": "0.0.1", + "version": "0.0.2", "homepage": "https://github.com/adaptlearning/adapt-contrib-narrative", "authors": [ "Brian Quinn ", diff --git a/package.json b/package.json index 37ef786..c65e64d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "adapt-contrib-narrative", - "version": "0.0.1", + "version": "0.0.2", "description": "An narrative component", "main": "", "scripts": {