From be08e1f7db9b2db8c8f404b33009949b0a82f3ae Mon Sep 17 00:00:00 2001
From: karthik-tarento <karthikeyan.rajendran@tarento.com>
Date: Fri, 8 Apr 2022 21:39:56 +0530
Subject: [PATCH] SB-29495 schema changes for iGOT

---
 schemas/asset/1.0/schema.json       | 12 +++++++
 schemas/collection/1.0/schema.json  | 12 +++++++
 schemas/content/1.0/schema.json     | 15 +++++++-
 schemas/question/1.0/schema.json    | 16 ++++++++-
 schemas/questionset/1.0/schema.json | 55 +++++++++++++++++++++++++++++
 5 files changed, 108 insertions(+), 2 deletions(-)

diff --git a/schemas/asset/1.0/schema.json b/schemas/asset/1.0/schema.json
index 8aa9ad085..5a4dc078b 100644
--- a/schemas/asset/1.0/schema.json
+++ b/schemas/asset/1.0/schema.json
@@ -1249,6 +1249,18 @@
             "items": {
                 "type": "string"
             }
+        },
+        "taxonomyPaths_v2": {
+            "type": "array",
+            "items": {
+                "type": "object"
+            }
+        },
+        "competencies_v3": {
+            "type": "array",
+            "items": {
+                "type": "object"
+            }
         }
     }
 }
\ No newline at end of file
diff --git a/schemas/collection/1.0/schema.json b/schemas/collection/1.0/schema.json
index 112e93841..2f897db5a 100644
--- a/schemas/collection/1.0/schema.json
+++ b/schemas/collection/1.0/schema.json
@@ -1286,6 +1286,18 @@
       "items": {
           "type": "object"
       }
+    },
+    "taxonomyPaths_v2": {
+      "type": "array",
+      "items": {
+          "type": "object"
+      }
+    },
+    "competencies_v3": {
+        "type": "array",
+        "items": {
+            "type": "object"
+        }
     }
   }
 }
diff --git a/schemas/content/1.0/schema.json b/schemas/content/1.0/schema.json
index 73181a850..9a0728d6b 100644
--- a/schemas/content/1.0/schema.json
+++ b/schemas/content/1.0/schema.json
@@ -87,7 +87,8 @@
                 "audio/webm",
                 "audio/x-wav",
                 "audio/wav",
-                "application/json"
+                "application/json",
+                "application/quiz"
             ]
         },
         "osId": {
@@ -1395,6 +1396,18 @@
           "items": {
               "type": "object"
           }
+        },
+        "taxonomyPaths_v2": {
+            "type": "array",
+            "items": {
+                "type": "object"
+            }
+        },
+        "competencies_v3": {
+            "type": "array",
+            "items": {
+                "type": "object"
+            }
         }
     }
 }
diff --git a/schemas/question/1.0/schema.json b/schemas/question/1.0/schema.json
index 6054a39e3..ae0c3e9d3 100644
--- a/schemas/question/1.0/schema.json
+++ b/schemas/question/1.0/schema.json
@@ -425,7 +425,10 @@
       "enum": [
         "MCQ",
         "FTB",
-        "SA"
+        "SA",
+        "MCQ-MCA",
+        "MCQ-SCA",
+        "MTF"
       ]
     },
     "scoringMode": {
@@ -580,6 +583,17 @@
     },
     "originData": {
       "type": "object"
+    },
+    "choices": {
+      "type": "object",
+      "description": "Choices which needs to be used in MCQ / MTF type question"
+    },
+    "rhsChoices": {
+      "type": "array",
+      "items": {
+        "type": "string"
+      },
+      "description": "Choices which needs to be used in RHS of MTF type question"
     }
   },
   "additionalProperties": false
diff --git a/schemas/questionset/1.0/schema.json b/schemas/questionset/1.0/schema.json
index fcc691a25..96da2520d 100644
--- a/schemas/questionset/1.0/schema.json
+++ b/schemas/questionset/1.0/schema.json
@@ -656,6 +656,61 @@
     },
     "originData": {
       "type": "object"
+    },
+    "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
+    },
+    "purpose": {
+      "type": "string"
+    },
+    "scoreCutoffType": {
+      "type": "string",
+      "enum": [
+        "AssessmentLevel",
+        "SectionLevel"
+      ],
+      "default": "AssessmentLevel"
+    },
+    "subTitle": {
+      "type": "string"
+    },
+    "minimumPassPercentage": {
+      "type": "number"
+    },
+    "additionalKeywords": {
+      "type": "array",
+      "items": {
+        "type": "string"
+      }
+    },
+    "additionalInstructions": {
+      "type": "string"
+    },
+    "reviewStatus": {
+      "type": "string"
     }
   },
   "additionalProperties": false
-- 
GitLab