WIP on courses get function

This commit is contained in:
Ben Ramey
2018-09-18 07:14:04 -05:00
parent 435060a764
commit 071038b7f8
5 changed files with 42 additions and 43 deletions

View File

@@ -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,