Skip to content

Commit

Permalink
Merge pull request #54 from adaptlearning/json-schema
Browse files Browse the repository at this point in the history
JSON schema
  • Loading branch information
darylhedley committed Apr 29, 2014
2 parents 997b5fc + bf0dec7 commit c732bfd
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
4 changes: 3 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "adapt-contrib-narrative",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "https://github.com/adaptlearning/adapt-contrib-narrative",
"authors": [
"Brian Quinn <[email protected]>",
"Daryl Hedley <[email protected]>"
],
"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"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adapt-contrib-narrative",
"version": "0.0.1",
"version": "0.0.2",
"description": "An narrative component",
"main": "",
"scripts": {
Expand All @@ -16,7 +16,7 @@
"url": "https://github.com/adaptlearning/adapt-contrib-narrative/issues"
},
"devDependencies": {
"karma": "~0.9",
"karma": "~0.10",
"karma-mocha": "*",
"karma-expect": "*"
}
Expand Down
41 changes: 41 additions & 0 deletions properties.schema
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
}

0 comments on commit c732bfd

Please sign in to comment.