Raw schema
{
"type": "object",
"properties": {
"question_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The question id (from classmarker_list_questions)."
},
"question_type": {
"type": "string",
"enum": [
"multiplechoice",
"multipleresponse",
"truefalse",
"essay"
],
"description": "multiplechoice (one correct option), multipleresponse (one or more), truefalse, or essay (graded by hand). Free text, grammar and matching cannot be written."
},
"question": {
"type": "string",
"minLength": 1,
"maxLength": 10000,
"description": "The question text."
},
"category_id": {
"description": "Category id (from classmarker_list_categories).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"points": {
"description": "Points for a correct answer (for an essay: the maximum score).",
"type": "number",
"minimum": 0,
"maximum": 1000
},
"options": {
"description": "Answer options keyed by letter A-J (up to 10), e.g. {\"A\": \"Apply oil\", \"B\": \"Soak in water\"}. Needed for multiplechoice and multipleresponse; not allowed for truefalse and essay.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 5000
}
},
"correct_options": {
"description": "Letters of the correct options, e.g. [\"C\"]. multiplechoice: exactly one; multipleresponse: one or more; truefalse: [\"A\"] (True) or [\"B\"] (False); not allowed for essay.",
"type": "array",
"items": {
"type": "string"
}
},
"random_answers": {
"description": "Shuffle the order of the options for each test-taker (multiplechoice / multipleresponse).",
"type": "boolean"
},
"grade_style": {
"description": "multipleresponse only: partial credit with or without deduction, or off (all-or-nothing).",
"type": "string",
"enum": [
"partial_with_deduction",
"partial_without_deduction",
"off"
]
},
"correct_feedback": {
"description": "Feedback shown for a correct answer.",
"type": "string",
"maxLength": 5000
},
"incorrect_feedback": {
"description": "Feedback shown for an incorrect answer.",
"type": "string",
"maxLength": 5000
}
},
"required": [
"question_id",
"question_type",
"question"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}