UNPKG

tin-can-json-schema

Version:

JSON Schema files for structures in the Experience API

1,112 lines 30.3 kB
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "additionalProperties": false, "properties": { "about": { "id": "#about", "type": "object", "required": [ "version" ], "additionalProperties": false, "properties": { "version": { "type": "string", "format": "version" }, "extensions": { "$ref": "#extensions" } } }, "account": { "id": "#account", "type": "object", "required": [ "account" ], "properties": { "account": { "id": "#account!core", "type": "object", "additionalProperties": false, "required": [ "homePage", "name" ], "properties": { "homePage": { "type": "string", "format": "iri" }, "name": { "type": "string" } } }, "mbox": { "type": "null" }, "mbox_sha1sum": { "type": "null" }, "openid": { "type": "null" } } }, "activity_definition": { "id": "#activity_definition", "type": "object", "oneOf": [ { "properties": { "interactionType": { "type": "null" }, "correctResponsesPattern": { "type": "null" }, "choices": { "type": "null" }, "scale": { "type": "null" }, "source": { "type": "null" }, "target": { "type": "null" }, "steps": { "type": "null" } } }, { "$ref": "#interactionactivity" } ], "additionalProperties": false, "properties": { "name": { "$ref": "#languagemap" }, "description": { "$ref": "#languagemap" }, "type": { "type": "string", "format": "iri" }, "moreInfo": { "type": "string", "format": "iri" }, "interactionType": {}, "correctResponsesPattern": {}, "choices": {}, "scale": {}, "source": {}, "target": {}, "steps": {}, "extensions": { "$ref": "#extensions" } } }, "activity_list_or_obj": { "id": "#activity_list_or_obj", "oneOf": [ { "type": "array", "items": { "$ref": "#activity" } }, { "$ref": "#activity" } ] }, "activity": { "id": "#activity", "type": "object", "required": [ "id" ], "additionalProperties": false, "properties": { "objectType": { "enum": [ "Activity" ] }, "id": { "$ref": "#activityid!core" }, "definition": { "$ref": "#activity_definition" } } }, "activityid": { "id": "#activityid", "type": "object", "required": [ "activityId" ], "properties": { "activityId": { "id": "#activityid!core", "type": "string", "format": "iri" } } }, "agent": { "id": "#agent", "allOf": [ { "$ref": "#inversefunctional" } ], "properties": { "name": { "type": "string" }, "objectType": { "enum": [ "Agent" ] }, "mbox": {}, "mbox_sha1sum": {}, "account": {}, "openid": {} }, "additionalProperties": false }, "anonymousgroup": { "id": "#anonymousgroup", "allOf": [ { "$ref": "#group_base" } ], "required": [ "member" ], "properties": { "member": {}, "name": {}, "objectType": {} }, "additionalProperties": false }, "attachment": { "id": "#attachment", "type": "object", "additionalProperties": false, "required": [ "usageType", "display", "contentType", "length", "sha2" ], "properties": { "usageType": { "type": "string", "format": "iri" }, "display": { "$ref": "#languagemap" }, "description": { "$ref": "#languagemap" }, "contentType": { "type": "string", "format": "mimetype" }, "length": { "type": "number", "minimum": 0 }, "sha2": { "type": "string", "format": "sha2" }, "fileUrl": { "type": "string", "format": "iri" } } }, "context": { "id": "#context", "type": "object", "additionalProperties": false, "properties": { "registration": { "type": "string", "format": "uuid" }, "instructor": { "oneOf": [ { "$ref": "#agent" }, { "$ref": "#group" } ] }, "team": { "allOf": [ { "$ref": "#group" } ] }, "contextActivities": { "$ref": "#contextactivities" }, "revision": { "type": "string" }, "platform": { "type": "string" }, "language": { "type": "string", "format": "langtag" }, "statement": { "$ref": "#statementref" }, "extensions": { "$ref": "#extensions" } } }, "contextactivities": { "id": "#contextactivities", "type": "object", "additionalProperties": false, "properties": { "parent": { "$ref": "#activity_list_or_obj" }, "grouping": { "$ref": "#activity_list_or_obj" }, "category": { "$ref": "#activity_list_or_obj" }, "other": { "$ref": "#activity_list_or_obj" } } }, "extensions": { "id": "#extensions", "patternProperties": { "^(?:[A-Za-z](?:[-A-Za-z0-9\\+\\.])*:(?:\\/\\/(?:(?:%[0-9A-Fa-f][0-9A-Fa-f]|[-A-Za-z0-9\\._~\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF\\uDC00\\uD800-\\uDFFD\\uD83F\\uDC00\\uD840-\\uDFFD\\uD87F\\uDC00\\uD880-\\uDFFD\\uD8BF\\uDC00\\uD8C0-\\uDFFD\\uD8FF\\uDC00\\uD900-\\uDFFD\\uD93F\\uDC00\\uD940-\\uDFFD\\uD97F\\uDC00\\uD980-\\uDFFD\\uD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uD9C0-\\uDFFD\\uD9FF\\uDC00\\uDA00-\\uDFFD\\uDA3F\\uDC00\\uDA40-\\uDFFD\\uDA7F\\uDC00\\uDA80-\\uDFFD\\uDABF\\uDC00\\uDAC0-\\uDFFD\\uDAFF\\uDC00\\uDB00-\\uDFFD\\uDB3F\\uDC00\\uDB44-\\uDFFD\\uDB7F!\\$&'\\(\\)\\*\\+,;=:@])|[\\/\\?])*)?)$": {} }, "additionalProperties": false }, "group_base": { "id": "#group_base", "type": "object", "required": [ "objectType" ], "properties": { "name": { "type": "string" }, "objectType": { "enum": [ "Group" ] }, "member": { "type": "array", "items": { "$ref": "#agent" } } } }, "group": { "id": "#group", "oneOf": [ { "$ref": "#anonymousgroup" }, { "$ref": "#identifiedgroup" } ] }, "identifiedgroup": { "id": "#identifiedgroup", "allOf": [ { "$ref": "#inversefunctional" }, { "$ref": "#group_base" } ], "properties": { "name": {}, "objectType": {}, "member": {}, "mbox": {}, "mbox_sha1sum": {}, "account": {}, "openid": {} }, "additionalProperties": false }, "interactionactivity_base": { "id": "#interactionactivity_base", "type": "object", "properties": { "correctResponsesPattern": { "type": "array", "items": { "type": "string" } } } }, "interactionactivity_choices": { "id": "#interactionactivity_choices", "type": "object", "allOf": [ { "$ref": "#interactionactivity_base" } ], "required": [ "interactionType" ], "properties": { "choices": { "$ref": "#interactioncomponent_list" }, "scale": { "type": "null" }, "source": { "type": "null" }, "target": { "type": "null" }, "steps": { "type": "null" }, "interactionType": { "enum": [ "choice", "sequencing" ] } } }, "interactionactivity_none": { "id": "#interactionactivity_none", "type": "object", "required": [ "interactionType" ], "allOf": [ { "$ref": "#interactionactivity_base" }, { "oneOf": [ { "properties": { "interactionType": { "enum": [ "true-false" ] }, "correctResponsesPattern": { "type": "array", "items": { "enum": [ "true", "false" ] } } } }, { "not": { "properties": { "interactionType": { "enum": [ "true-false" ] } } } } ] } ], "properties": { "choices": { "type": "null" }, "scale": { "type": "null" }, "source": { "type": "null" }, "target": { "type": "null" }, "steps": { "type": "null" }, "interactionType": { "enum": [ "true-false", "fill-in", "long-fill-in", "numeric", "other" ] } } }, "interactionactivity_scale": { "id": "#interactionactivity_scale", "type": "object", "allOf": [ { "$ref": "#interactionactivity_base" } ], "required": [ "interactionType" ], "properties": { "choices": { "type": "null" }, "scale": { "$ref": "#interactioncomponent_list" }, "source": { "type": "null" }, "target": { "type": "null" }, "steps": { "type": "null" }, "interactionType": { "enum": [ "likert" ] } } }, "interactionactivity_sourcetarget": { "id": "#interactionactivity_sourcetarget", "type": "object", "allOf": [ { "$ref": "#interactionactivity_base" } ], "required": [ "interactionType" ], "properties": { "choices": { "type": "null" }, "scale": { "type": "null" }, "source": { "$ref": "#interactioncomponent_list" }, "target": { "$ref": "#interactioncomponent_list" }, "steps": { "type": "null" }, "interactionType": { "enum": [ "matching" ] } } }, "interactionactivity_steps": { "id": "#interactionactivity_steps", "type": "object", "allOf": [ { "$ref": "#interactionactivity_base" } ], "required": [ "interactionType" ], "properties": { "choices": { "type": "null" }, "scale": { "type": "null" }, "source": { "type": "null" }, "target": { "type": "null" }, "steps": { "$ref": "#interactioncomponent_list" }, "interactionType": { "enum": [ "performance" ] } } }, "interactionactivity": { "id": "#interactionactivity", "type": "object", "oneOf": [ { "$ref": "#interactionactivity_choices" }, { "$ref": "#interactionactivity_scale" }, { "$ref": "#interactionactivity_sourcetarget" }, { "$ref": "#interactionactivity_steps" }, { "$ref": "#interactionactivity_none" } ] }, "interactioncomponent_list": { "id": "#interactioncomponent_list", "type": "array", "items": { "$ref": "#interactioncomponent" }, "minItems": 0 }, "interactioncomponent": { "id": "#interactioncomponent", "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string", "minLength": 1 }, "description": { "$ref": "#languagemap" } } }, "inversefunctional": { "id": "#inversefunctional", "oneOf": [ { "$ref": "#mbox" }, { "$ref": "#mbox_sha1sum" }, { "$ref": "#openid" }, { "$ref": "#account" } ] }, "languagemap": { "id": "#languagemap", "type": "object", "patternProperties": { "^(((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+)|((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang)))$": { "type": "string" } }, "additionalProperties": false }, "mbox_sha1sum": { "id": "#mbox_sha1sum", "type": "object", "required": [ "mbox_sha1sum" ], "properties": { "mbox_sha1sum": { "id": "#mbox_sha1sum!core", "type": "string", "format": "sha1" }, "mbox": { "type": "null" }, "openid": { "type": "null" }, "account": { "type": "null" } } }, "mbox": { "id": "#mbox", "type": "object", "required": [ "mbox" ], "properties": { "mbox": { "id": "#mbox!core", "type": "string", "format": "mailto-iri" }, "mbox_sha1sum": { "type": "null" }, "openid": { "type": "null" }, "account": { "type": "null" } } }, "openid": { "id": "#openid", "type": "object", "required": [ "openid" ], "properties": { "openid": { "id": "#openid!core", "type": "string", "format": "rfc3986-uri" }, "mbox": { "type": "null" }, "mbox_sha1sum": { "type": "null" }, "account": { "type": "null" } } }, "person": { "id": "#person", "type": "object", "additionalProperties": false, "required": [ "objectType" ], "properties": { "objectType": { "enum": [ "Person" ] }, "name": { "type": "array", "items": { "type": "string" } }, "mbox": { "type": "array", "items": { "$ref": "#mbox!core" } }, "mbox_sha1sum": { "type": "array", "items": { "$ref": "#mbox_sha1sum!core" } }, "openid": { "type": "array", "items": { "$ref": "#openid!core" } }, "account": { "type": "array", "items": { "$ref": "#account!core" } } } }, "result": { "id": "#result", "type": "object", "properties": { "score": { "$ref": "#score" }, "success": { "type": "boolean" }, "completion": { "type": "boolean" }, "response": { "type": "string" }, "duration": { "type": "string", "format": "iso_duration" }, "extensions": { "$ref": "#extensions" } }, "additionalProperties": false }, "score": { "id": "#score", "type": "object", "additionalProperties": false, "properties": { "scaled": { "type": "number", "minimum": -1, "maximum": 1 }, "raw": { "type": "number" }, "min": { "type": "number" }, "max": { "type": "number" } } }, "statement_base": { "id": "#statement_base", "type": "object", "required": [ "actor", "verb", "object" ], "oneOf": [ { "required": [ "object" ], "properties": { "object": { "$ref": "#activity" } } }, { "required": [ "object" ], "properties": { "object": { "not": { "$ref": "#activity" } }, "context": { "properties": { "revision": { "type": "null" }, "platform": { "type": "null" } } } } } ], "additionalProperties": false, "properties": { "objectType": {}, "id": { "type": "string", "format": "uuid" }, "actor": { "oneOf": [ { "$ref": "#agent" }, { "$ref": "#group" } ] }, "verb": { "$ref": "#verb" }, "object": { "$ref": "#statement_object" }, "result": { "$ref": "#result" }, "context": { "$ref": "#context" }, "timestamp": { "type": "string", "format": "iso_date" }, "stored": { "type": "string", "format": "iso_date" }, "authority": { "oneOf": [ { "$ref": "#agent" }, { "allOf": [ { "$ref": "#anonymousgroup" } ], "properties": { "member": { "type": "array", "items": { "$ref": "#agent" }, "minItems": 2, "maxItems": 2 } } } ] }, "version": { "type": "string", "format": "version" }, "attachments": { "type": "array", "items": { "$ref": "#attachment" } } } }, "statement_list": { "id": "#statement_list", "type": "array", "items": { "$ref": "#statement" } }, "statement_object": { "id": "#statement_object", "type": "object", "oneOf": [ { "$ref": "#activity" }, { "required": [ "objectType" ], "oneOf": [ { "$ref": "#agent" }, { "$ref": "#group" }, { "$ref": "#statementref" }, { "$ref": "#substatement" } ] } ] }, "statement": { "id": "#statement", "type": "object", "allOf": [ { "$ref": "#statement_base" } ], "properties": { "objectType": { "type": "null" }, "id": {}, "actor": {}, "verb": {}, "object": {}, "result": {}, "context": {}, "timestamp": {}, "stored": {}, "authority": {}, "version": {}, "attachments": {} }, "additionalProperties": false }, "statementref": { "id": "#statementref", "type": "object", "additionalProperties": false, "required": [ "objectType", "id" ], "properties": { "objectType": { "enum": [ "StatementRef" ] }, "id": { "type": "string", "format": "uuid" } } }, "statementresult": { "id": "#statementresult", "type": "object", "additionalProperties": false, "required": [ "statements" ], "properties": { "statements": { "$ref": "#statement_list" }, "more": { "type": "string", "format": "iri" } } }, "substatement": { "id": "#substatement", "allOf": [ { "$ref": "#statement_base" } ], "required": [ "objectType" ], "additionalProperties": false, "properties": { "objectType": { "enum": [ "SubStatement" ] }, "id": { "type": "null" }, "stored": { "type": "null" }, "version": { "type": "null" }, "authority": { "type": "null" }, "object": { "not": { "required": [ "objectType" ], "properties": { "objectType": { "enum": [ "SubStatement" ] } } } }, "actor": {}, "verb": {}, "result": {}, "context": {}, "timestamp": {}, "attachments": {} } }, "verb": { "id": "#verb", "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string", "format": "iri" }, "display": { "$ref": "#languagemap" } }, "additionalProperties": false } } }