Skip to content

Commit

Permalink
Merge pull request #44 from adaptlearning/schema-updates-backbone-forms
Browse files Browse the repository at this point in the history
Schema updates
  • Loading branch information
darylhedley committed Nov 18, 2014
2 parents da71db3 + be0c4f9 commit 0aab04a
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions properties.schema
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,46 @@
"id": "http://jsonschema.net",
"$ref": "http://localhost/plugins/content/component/model.schema",
"properties":{
"instruction": {
"type": "string",
"required": false,
"default": "",
"inputType": "Text",
"validators": [],
"help": "This is the instruction text"
},
"_items": {
"type":"array",
"required":true,
"minItems": 1,
"title": "Items",
"title":"Items",
"items": {
"type":"object",
"required":true,
"properties":{
"title": {
"type":"string",
"required":true,
"title": "Title",
"minLength": 1
"inputType": "Text",
"title": "Item Title",
"default": "",
"validators": ["required"],
"help": "This is the item title"
},
"body": {
"type":"string",
"required":true,
"title": "Content text",
"minLength": 1
"inputType": "TextArea",
"title": "Item Body",
"default": "",
"validators": ["required"],
"help": "This is the item body text that is hidden until the item title is clicked on"
},
"alt": {
"type":"string",
"required":false,
"title": "Alternative text"
"inputType": "Text",
"default": "",
"validators": []
}
}
}
Expand Down

0 comments on commit 0aab04a

Please sign in to comment.