Format and test fixes

This commit is contained in:
2020-11-18 21:17:29 -06:00
parent 95d7360ee4
commit 172e208edd
8 changed files with 55 additions and 27 deletions

View File

@@ -0,0 +1,19 @@
const commonSchemas = require(`../../validation/commonSchemas`);
const login = {
$schema: "http://json-schema.org/draft-07/schema#",
title: "Login User",
description: "An object to log-in a new user",
type: "object",
properties: {
email: commonSchemas.email,
password: {
type: "string",
},
},
required: ["email", "password"],
};
module.exports = {
login,
};