-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from adaptlearning/json-schema
JSON schema
- Loading branch information
Showing
3 changed files
with
95 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{ | ||
"name": "adapt-contrib-mcq", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/adaptlearning/adapt-contrib-mcq", | ||
"authors": [ | ||
"Daryl Hedley <[email protected]>" | ||
], | ||
"description": "Please enter a description about your component here. This is what will get shown when registered with the Adapt registry so make it good", | ||
"description": "An Adapt core multiple choice question.", | ||
"main": "/js/adapt-contrib-mcq.js", | ||
"displayName" : "Multiple Choice Question", | ||
"component" : "mcq", | ||
"keywords": [ | ||
"adapt-plugin", | ||
"adapt-component" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"type":"object", | ||
"$schema": "http://json-schema.org/draft-04/schema", | ||
"id": "http://jsonschema.net", | ||
"$ref": "http://localhost/plugins/content/component/model.schema", | ||
"properties":{ | ||
"_attempts": { | ||
"type":"number", | ||
"required":true, | ||
"default":1 | ||
}, | ||
"_isRandom": { | ||
"type":"boolean", | ||
"required":true | ||
}, | ||
"_questionWeight": { | ||
"type":"number", | ||
"required":false | ||
}, | ||
"_selectable": { | ||
"type":"number", | ||
"required":true | ||
}, | ||
"buttons": { | ||
"type":"object", | ||
"required":false, | ||
"properties":{ | ||
"hideCorrectAnswer": { | ||
"type":"string", | ||
"required":false, | ||
"default":"Your Answer" | ||
}, | ||
"reset": { | ||
"type":"string", | ||
"required":false, | ||
"default":"Reset" | ||
}, | ||
"showCorrectAnswer": { | ||
"type":"string", | ||
"required":false, | ||
"default":"Model Answer" | ||
}, | ||
"submit": { | ||
"type":"string", | ||
"required":false, | ||
"default":"Submit" | ||
} | ||
} | ||
}, | ||
"feedback": { | ||
"type":"object", | ||
"required":true, | ||
"properties":{ | ||
"correct": { | ||
"type":"string", | ||
"required":true | ||
}, | ||
"incorrect": { | ||
"type":"string", | ||
"required":true | ||
}, | ||
"partly": { | ||
"type":"string", | ||
"required":true | ||
} | ||
} | ||
}, | ||
"items": { | ||
"type":"array", | ||
"required":true, | ||
"items": | ||
{ | ||
"type":"object", | ||
"required":true, | ||
"properties":{ | ||
"shouldBeSelected": { | ||
"type":"boolean", | ||
"required":true | ||
}, | ||
"text": { | ||
"type":"string", | ||
"required":true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |