diff --git a/schemas/category/1.0/schema.json b/schemas/category/1.0/schema.json index d50be0fc5..243d2e001 100644 --- a/schemas/category/1.0/schema.json +++ b/schemas/category/1.0/schema.json @@ -1,76 +1,76 @@ { - "$id": "category-schema.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Category", - "type": "object", - "required": [ - "name", - "code", - "orgIdFieldName", - "targetIdFieldName", - "searchIdFieldName", - "searchLabelFieldName" - ], - "properties": { - "name": { - "type": "string", - "minLength": 5 - }, - "code": { - "type": "string" - }, - "status": { - "type": "string", - "enum": [ - "Live", - "Retired" - ], - "default": "Live" - }, - "description": { - "type": "string" - }, - "identifier": { - "type": "string" - }, - "trackable": { - "type": "object", - "properties": { - "enabled": { - "type": "string", - "enum": [ - "Yes", - "No" - ], - "default": "No" - }, - "autoBatch": { - "type": "string", - "enum": [ - "Yes", - "No" - ], - "default": "No" - } - }, - "default": { - "enabled": "No", - "autoBatch": "No" - }, - "additionalProperties": false - }, - "orgIdFieldName": { - "type": "string" - }, - "targetIdFieldName": { - "type": "string" - }, - "searchIdFieldName": { - "type": "string" + "$id": "category-schema.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Category", + "type": "object", + "required": [ + "name", + "code", + "orgIdFieldName", + "targetIdFieldName", + "searchIdFieldName", + "searchLabelFieldName" + ], + "properties": { + "name": { + "type": "string", + "minLength": 5 + }, + "code": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "Live", + "Retired" + ], + "default": "Live" + }, + "description": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "trackable": { + "type": "object", + "properties": { + "enabled": { + "type": "string", + "enum": [ + "Yes", + "No" + ], + "default": "No" }, - "searchLabelFieldName": { - "type": "string" + "autoBatch": { + "type": "string", + "enum": [ + "Yes", + "No" + ], + "default": "No" } + }, + "default": { + "enabled": "No", + "autoBatch": "No" + }, + "additionalProperties": false + }, + "orgIdFieldName": { + "type": "string" + }, + "targetIdFieldName": { + "type": "string" + }, + "searchIdFieldName": { + "type": "string" }, - "additionalProperties": true + "searchLabelFieldName": { + "type": "string" + } + }, + "additionalProperties": true } \ No newline at end of file diff --git a/schemas/categoryinstance/1.0/schema.json b/schemas/categoryinstance/1.0/schema.json index b4423fa17..090ee8013 100644 --- a/schemas/categoryinstance/1.0/schema.json +++ b/schemas/categoryinstance/1.0/schema.json @@ -18,10 +18,16 @@ "type": "string" }, "translations": { - "type": "object" + "type": "array", + "items": { + "type": "string" + } }, "defaultTerm": { - "type": "object" + "type": "array", + "items": { + "type": "string" + } }, "status": { "type": "string", @@ -57,7 +63,7 @@ "type": "string" }, "index": { - "type": "number" + "type": "string" } } } diff --git a/schemas/collection/1.0/config.json b/schemas/collection/1.0/config.json index 64f5c9251..8426dbd63 100644 --- a/schemas/collection/1.0/config.json +++ b/schemas/collection/1.0/config.json @@ -118,6 +118,5 @@ "org": { } }, - "schema_restrict_api": false } \ No newline at end of file diff --git a/schemas/dialcode/1.0/config.json b/schemas/dialcode/1.0/config.json index 18f157204..b384c628d 100644 --- a/schemas/dialcode/1.0/config.json +++ b/schemas/dialcode/1.0/config.json @@ -42,4 +42,4 @@ "primaryKey": ["processid"] }, "schema_restrict_api": false -} \ No newline at end of file +} diff --git a/schemas/dialcode/1.0/schema.json b/schemas/dialcode/1.0/schema.json index b2623acb2..05e75c210 100644 --- a/schemas/dialcode/1.0/schema.json +++ b/schemas/dialcode/1.0/schema.json @@ -48,4 +48,4 @@ "type": "string" } } -} \ No newline at end of file +} diff --git a/schemas/objectcategory/1.0/schema.json b/schemas/objectcategory/1.0/schema.json index cc9881cc8..77d1a7108 100644 --- a/schemas/objectcategory/1.0/schema.json +++ b/schemas/objectcategory/1.0/schema.json @@ -36,19 +36,7 @@ "Default" ], "default": "Default" - }, - "createdOn": { - "type": "string" - }, - "lastUpdatedOn": { - "type": "string" - }, - "lastStatusChangedOn": { - "type": "string" - }, - "versionKey": { - "type": "string" } }, "additionalProperties": false -} +} \ No newline at end of file diff --git a/schemas/question/1.1/config.json b/schemas/question/1.1/config.json index f7b479e6e..c915cde82 100644 --- a/schemas/question/1.1/config.json +++ b/schemas/question/1.1/config.json @@ -4,34 +4,81 @@ "questionSet": { "type": "hasSequenceMember", "direction": "in", - "objects": ["QuestionSet", "QuestionSetImage"] + "objects": [ + "QuestionSet", + "QuestionSetImage" + ] } }, "restrictProps": { - "create" : [ - "status", "schemaVersion" + "create": [ + "status", + "schemaVersion" ], - "update" : [ - "visibility", "code", "status", "mimeType", "qumlVersion", "schemaVersion" + "update": [ + "visibility", + "code", + "status", + "mimeType", + "qumlVersion", + "schemaVersion" ], - "review" : [ - "visibility", "code", "status", "mimeType", "qumlVersion", "schemaVersion" + "review": [ + "visibility", + "code", + "status", + "mimeType", + "qumlVersion", + "schemaVersion" ], - "publish" : [ - "visibility", "code", "status", "mimeType", "qumlVersion", "schemaVersion" + "publish": [ + "visibility", + "code", + "status", + "mimeType", + "qumlVersion", + "schemaVersion" ], "reject": [ - "visibility", "code", "status", "mimeType", "qumlVersion", "schemaVersion" + "visibility", + "code", + "status", + "mimeType", + "qumlVersion", + "schemaVersion" ] }, "version": "enable", "versionCheckMode": "ON", - "frameworkCategories": ["board","medium","subject","gradeLevel","topic"], - "orgFrameworkTerms": ["boardIds", "gradeLevelIds", "subjectIds", "mediumIds", "topicsIds"], - "targetFrameworkTerms": ["targetFWIds", "targetBoardIds", "targetGradeLevelIds", "targetSubjectIds", "targetMediumIds", "targetTopicIds"], + "frameworkCategories": [ + "board", + "medium", + "subject", + "gradeLevel", + "topic" + ], + "orgFrameworkTerms": [ + "boardIds", + "gradeLevelIds", + "subjectIds", + "mediumIds", + "topicsIds" + ], + "targetFrameworkTerms": [ + "targetFWIds", + "targetBoardIds", + "targetGradeLevelIds", + "targetSubjectIds", + "targetMediumIds", + "targetTopicIds" + ], "cacheEnabled": false, - "schema_restrict_api": true, - "oneOfProps": ["body","answer","instructions"], + "schema_restrict_api": false, + "oneOfProps": [ + "body", + "answer", + "instructions" + ], "external": { "tableName": "question_data", "properties": { @@ -69,13 +116,16 @@ "type": "string" } }, - "primaryKey": ["identifier"] + "primaryKey": [ + "identifier" + ] }, "PII_Fields": { "user": { - "createdBy": ["creator"] + "createdBy": [ + "creator" + ] }, - "org": { - } + "org": {} } } \ No newline at end of file diff --git a/schemas/question/1.1/schema.json b/schemas/question/1.1/schema.json index 018fa0185..7d2c39f99 100644 --- a/schemas/question/1.1/schema.json +++ b/schemas/question/1.1/schema.json @@ -17,8 +17,7 @@ "minLength": 5 }, "code": { - "type": "string", - "description": "a unique alphanumeric code" + "type": "string" }, "description": { "type": "string" @@ -89,7 +88,9 @@ "Other" ] }, - "default": ["English"] + "default": [ + "English" + ] }, "languageCode": { "type": "array" @@ -236,7 +237,7 @@ "author": { "type": "string" }, - "complexityLevel" : { + "complexityLevel": { "description": "Cognitive processes involved to answer the question set.", "type": "array", "items": { @@ -251,7 +252,7 @@ ] } }, - "interactionTypes":{ + "interactionTypes": { "type": "array", "items": { "type": "string", @@ -363,7 +364,6 @@ } ] } - }, "solutions": { "description": "Solutions to the question.", @@ -388,13 +388,28 @@ "description": "List of media used in the question", "items": { "type": "object", - "required": ["id", "type", "src"], + "required": [ + "id", + "type", + "src" + ], "properties": { "id": { "type": "string" }, "type": { - "enum": ["application", "audio", "font", "example", "image", "message", "model", "multipart", "text", "video"] + "enum": [ + "application", + "audio", + "font", + "example", + "image", + "message", + "model", + "multipart", + "text", + "video" + ] }, "src": { "type": "string" @@ -414,22 +429,44 @@ "type": "object", "additionalProperties": { "type": "object", - "required": ["cardinality", "type"], + "required": [ + "cardinality", + "type" + ], "properties": { "cardinality": { "type": "string", - "enum": ["single", "multiple"] + "enum": [ + "single", + "multiple" + ] }, "type": { "type": "string", - "enum": ["string", "number", "integer", "boolean", "object", "array"] + "enum": [ + "string", + "number", + "integer", + "boolean", + "object", + "array" + ] }, "correctResponse": { "type": "object", - "required": ["value"], + "required": [ + "value" + ], "properties": { "value": { - "type": ["string", "number", "integer", "boolean", "object", "array"] + "type": [ + "string", + "number", + "integer", + "boolean", + "object", + "array" + ] } }, "additionalProperties": false @@ -438,13 +475,28 @@ "type": "array", "items": { "type": "object", - "required": ["value", "score"], + "required": [ + "value", + "score" + ], "properties": { "value": { - "type": ["string", "number", "integer", "boolean", "object", "array"] + "type": [ + "string", + "number", + "integer", + "boolean", + "object", + "array" + ] + }, + "score": { + "type": "number" }, - "score": {"type": "number"}, - "caseSensitive": {"type": "boolean", "default": false} + "caseSensitive": { + "type": "boolean", + "default": false + } }, "additionalProperties": false } @@ -507,19 +559,19 @@ "framework": { "type": "string" }, - "subject" : { + "subject": { "type": "array" }, - "medium" : { + "medium": { "type": "array" }, - "board" : { + "board": { "type": "string" }, - "gradeLevel" : { + "gradeLevel": { "type": "array" }, - "topic" : { + "topic": { "type": "array" }, "boardIds": { @@ -667,7 +719,7 @@ "none" ] }, - "templateId":{ + "templateId": { "type": "string" }, "dailySummaryReportEnabled": { @@ -726,6 +778,5 @@ "creator": { "type": "string" } - }, - "additionalProperties": false -} + } +} \ No newline at end of file diff --git a/schemas/questionset/1.1/config.json b/schemas/questionset/1.1/config.json index 1eb04122c..5e94e734d 100644 --- a/schemas/questionset/1.1/config.json +++ b/schemas/questionset/1.1/config.json @@ -21,7 +21,7 @@ } }, "version": "enable", - "versionCheckMode": "ON", + "versionCheckMode": "OFF", "frameworkCategories": [ "board", "medium", @@ -45,7 +45,7 @@ "targetTopicIds" ], "cacheEnabled": false, - "schema_restrict_api": true, + "schema_restrict_api": false, "restrictProps": { "create": [ "children", @@ -72,7 +72,9 @@ "rejectComment" ] }, - "oneOfProps": ["instructions"], + "oneOfProps": [ + "instructions" + ], "external": { "tableName": "questionset_hierarchy", "properties": { @@ -92,9 +94,10 @@ }, "PII_Fields": { "user": { - "createdBy": ["creator"] + "createdBy": [ + "creator" + ] }, - "org": { - } + "org": {} } } \ No newline at end of file diff --git a/schemas/questionset/1.1/schema.json b/schemas/questionset/1.1/schema.json index 3e2a36fe9..4f65a808d 100644 --- a/schemas/questionset/1.1/schema.json +++ b/schemas/questionset/1.1/schema.json @@ -204,7 +204,9 @@ "Other" ] }, - "default": ["English"] + "default": [ + "English" + ] }, "languageCode": { "type": "array" @@ -215,19 +217,19 @@ "framework": { "type": "string" }, - "subject" : { + "subject": { "type": "array" }, - "medium" : { + "medium": { "type": "array" }, - "board" : { + "board": { "type": "string" }, - "gradeLevel" : { + "gradeLevel": { "type": "array" }, - "topic" : { + "topic": { "type": "array" }, "boardIds": { @@ -519,7 +521,7 @@ ], "default": false }, - "complexityLevel" : { + "complexityLevel": { "description": "Cognitive processes involved to answer the question set.", "type": "array", "items": { @@ -709,6 +711,5 @@ "creator": { "type": "string" } - }, - "additionalProperties": false -} + } +} \ No newline at end of file