WIP on courses get function
This commit is contained in:
@@ -1,29 +1,12 @@
|
||||
const answerSchema = {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"user_id": {"type": "string"},
|
||||
"question_id": {"type": "string"},
|
||||
"is_correct": {"type": "boolean"}
|
||||
},
|
||||
"required": ["user_id", "question_id", "is_correct"]
|
||||
};
|
||||
|
||||
const userSchema = {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {"type": "string"},
|
||||
"score": {"type": "number"}
|
||||
},
|
||||
"required": ["user_id", "question_id", "is_correct"]
|
||||
};
|
||||
|
||||
const loginFollowUpSchema = {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"accessToken": {"type": "string"}
|
||||
},
|
||||
"required": ["accessToken"]
|
||||
};
|
||||
// const answerSchema = {
|
||||
// "type": "object",
|
||||
// "properties": {
|
||||
// "user_id": {"type": "string"},
|
||||
// "question_id": {"type": "string"},
|
||||
// "is_correct": {"type": "boolean"}
|
||||
// },
|
||||
// "required": ["user_id", "question_id", "is_correct"]
|
||||
// };
|
||||
|
||||
module.exports = {
|
||||
answerSchema,
|
||||
|
||||
Reference in New Issue
Block a user