X-Git-Url: https://git.auder.net/game/current/git-logo.png?a=blobdiff_plain;f=public%2Fjavascripts%2Futils%2Fvalidation.js;h=f604f77d9ad3ed9c8c4ee79775bb46231f86fc4e;hb=a3080c337cfaca9d600911396cae5a9233d43554;hp=aa39ebeba0f9544afaef30815de1eecf4c0a56f0;hpb=29c8b391bcdf6ffca53545178e2ad194287a1bdc;p=qomet.git diff --git a/public/javascripts/utils/validation.js b/public/javascripts/utils/validation.js index aa39ebe..f604f77 100644 --- a/public/javascripts/utils/validation.js +++ b/public/javascripts/utils/validation.js @@ -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", };