'update'
[qomet.git] / public / javascripts / utils / validation.js
index aa39ebe..f604f77 100644 (file)
@@ -2,7 +2,7 @@ try { var _ = require("underscore"); } catch (err) {} //for server
 
 let Validator = { };
 
-// Cell in assessment.questions array
+// Cell in evaluation.questions array
 Validator.Question = {
        "index": "section", //"2.2.1", "3.2", "1" ...etc
        "wording": "string",
@@ -32,7 +32,7 @@ Validator.Paper = {
        "password": "password",
 };
 
-Validator.Assessment = {
+Validator.Evaluation = {
        "_id": "bson",
        "cid": "bson",
        "name": "code",
@@ -42,7 +42,6 @@ Validator.Assessment = {
        "display": "alphanumeric", //"one" or "all"
        "time": "integer",
        "introduction": "string",
-       "conclusion": "string",
        "coefficient": "number",
        "questions": Validator.Question,
        "papers": Validator.Paper,
@@ -51,7 +50,6 @@ Validator.Assessment = {
 Validator.User = {
        "_id": "bson",
        "email": "email",
-       "forename": "name",
        "name": "name",
        "initials": "unchecked", //not a user input
        "loginToken": "unchecked",
@@ -61,7 +59,6 @@ Validator.User = {
 
 Validator.Student = {
        "number": "code",
-       "forename": "name",
        "name": "name",
        "group": "positiveInteger",
 };