From b01db78937f64bd32adc0760c7c3fd8374e3e1dc Mon Sep 17 00:00:00 2001 From: divyagovindaiah Date: Wed, 27 May 2026 11:09:27 +0530 Subject: [PATCH 1/2] chore(schemas): sync with release700 blob artifacts - add movie schema (new object type) - update category, categoryinstance, collection, dialcode, objectcategory, question, questionset schemas --- schemas/category/1.0/schema.json | 142 +++++++++++------------ schemas/categoryinstance/1.0/schema.json | 12 +- schemas/collection/1.0/config.json | 1 - schemas/dialcode/1.0/config.json | 2 +- schemas/dialcode/1.0/schema.json | 2 +- schemas/movie/1.0/config.json | 43 +++++++ schemas/movie/1.0/schema.json | 100 ++++++++++++++++ schemas/objectcategory/1.0/schema.json | 14 +-- schemas/question/1.1/config.json | 88 +++++++++++--- schemas/question/1.1/schema.json | 103 +++++++++++----- schemas/questionset/1.1/config.json | 15 ++- schemas/questionset/1.1/schema.json | 21 ++-- 12 files changed, 392 insertions(+), 151 deletions(-) create mode 100644 schemas/movie/1.0/config.json create mode 100644 schemas/movie/1.0/schema.json 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/movie/1.0/config.json b/schemas/movie/1.0/config.json new file mode 100644 index 000000000..b6c6a2318 --- /dev/null +++ b/schemas/movie/1.0/config.json @@ -0,0 +1,43 @@ +{ + "objectType": "Movie", + "relations": { + "boxSet": { + "type": "hasSequenceMember", + "direction": "in", + "objects": ["BoxSet"] + } + }, + "restrictProps": { + "create" : [ + "identifier","status", "objectType" + ], + "update" : [ + "director", "runTime", "maturityRating", "identifier", "status" + ] + }, + "version": "enable", + "versionCheckMode": "ON", + "frameworkCategories": [], + "orgFrameworkTerms": [], + "targetFrameworkTerms": [], + "cacheEnabled": false, + "schema_restrict_api": true, + "external": { + "tableName": "movie_data", + "properties": { + "summaries": { + "type": "string" + }, + "synopsis": { + "type": "blob" + }, + "awards": { + "type": "string" + }, + "story": { + "type": "text" + } + }, + "primaryKey": ["movie_id"] + } +} \ No newline at end of file diff --git a/schemas/movie/1.0/schema.json b/schemas/movie/1.0/schema.json new file mode 100644 index 000000000..977607ac8 --- /dev/null +++ b/schemas/movie/1.0/schema.json @@ -0,0 +1,100 @@ +{ + "$id": "movie-schema.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Movie", + "type": "object", + "required": [ + "name", + "year", + "director", + "genres", + "description" + ], + "properties": { + "name": { + "type": "string", + "minLength": 5 + }, + "year": { + "type": "string" + }, + "director": { + "type": "string" + }, + "genres": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "maturityRating": { + "type": "string", + "enum": [ + "U", + "U/A 7+", + "U/A 13+", + "U/A 16+", + "A" + ] + }, + "writers": { + "type": "array", + "items": { + "type": "string" + } + }, + "stars": { + "type": "array", + "items": { + "type": "string" + } + }, + "imdbRating": { + "type": "number" + }, + "runTime": { + "type": "number" + }, + "releaseDate": { + "type": "string" + }, + "language": { + "type": "array", + "items": { + "type": "string" + } + }, + "status": { + "type": "string", + "enum": [ + "unreleased", + "released", + "banned", + "running" + ], + "default": "unreleased" + }, + "versionKey": { + "type": "string" + }, + "lastStatusChangedOn": { + "type": "string" + }, + "lastUpdatedBy": { + "type": "string" + }, + "lastUpdatedOn": { + "type": "string" + }, + "createdBy": { + "type": "string" + }, + "createdOn": { + "type": "string" + } + }, + "additionalProperties": false +} 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 From ddfd94059085a44091096bbf1a93c23582e604bc Mon Sep 17 00:00:00 2001 From: divyagovindaiah Date: Wed, 27 May 2026 17:15:28 +0530 Subject: [PATCH 2/2] removed the movie folder --- schemas/movie/1.0/config.json | 43 --------------- schemas/movie/1.0/schema.json | 100 ---------------------------------- 2 files changed, 143 deletions(-) delete mode 100644 schemas/movie/1.0/config.json delete mode 100644 schemas/movie/1.0/schema.json diff --git a/schemas/movie/1.0/config.json b/schemas/movie/1.0/config.json deleted file mode 100644 index b6c6a2318..000000000 --- a/schemas/movie/1.0/config.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "objectType": "Movie", - "relations": { - "boxSet": { - "type": "hasSequenceMember", - "direction": "in", - "objects": ["BoxSet"] - } - }, - "restrictProps": { - "create" : [ - "identifier","status", "objectType" - ], - "update" : [ - "director", "runTime", "maturityRating", "identifier", "status" - ] - }, - "version": "enable", - "versionCheckMode": "ON", - "frameworkCategories": [], - "orgFrameworkTerms": [], - "targetFrameworkTerms": [], - "cacheEnabled": false, - "schema_restrict_api": true, - "external": { - "tableName": "movie_data", - "properties": { - "summaries": { - "type": "string" - }, - "synopsis": { - "type": "blob" - }, - "awards": { - "type": "string" - }, - "story": { - "type": "text" - } - }, - "primaryKey": ["movie_id"] - } -} \ No newline at end of file diff --git a/schemas/movie/1.0/schema.json b/schemas/movie/1.0/schema.json deleted file mode 100644 index 977607ac8..000000000 --- a/schemas/movie/1.0/schema.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "$id": "movie-schema.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Movie", - "type": "object", - "required": [ - "name", - "year", - "director", - "genres", - "description" - ], - "properties": { - "name": { - "type": "string", - "minLength": 5 - }, - "year": { - "type": "string" - }, - "director": { - "type": "string" - }, - "genres": { - "type": "array", - "items": { - "type": "string" - } - }, - "description": { - "type": "string" - }, - "maturityRating": { - "type": "string", - "enum": [ - "U", - "U/A 7+", - "U/A 13+", - "U/A 16+", - "A" - ] - }, - "writers": { - "type": "array", - "items": { - "type": "string" - } - }, - "stars": { - "type": "array", - "items": { - "type": "string" - } - }, - "imdbRating": { - "type": "number" - }, - "runTime": { - "type": "number" - }, - "releaseDate": { - "type": "string" - }, - "language": { - "type": "array", - "items": { - "type": "string" - } - }, - "status": { - "type": "string", - "enum": [ - "unreleased", - "released", - "banned", - "running" - ], - "default": "unreleased" - }, - "versionKey": { - "type": "string" - }, - "lastStatusChangedOn": { - "type": "string" - }, - "lastUpdatedBy": { - "type": "string" - }, - "lastUpdatedOn": { - "type": "string" - }, - "createdBy": { - "type": "string" - }, - "createdOn": { - "type": "string" - } - }, - "additionalProperties": false -}