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

@@ -1,19 +1,21 @@
const sharedSchemas = require(`../schemas`);
const commonSchemas = require(`../../validation/commonSchemas`);
const create = {
$schema: "http://json-schema.org/draft-07/schema#",
title: "Create User",
description: "An object to create a new user",
type: "object",
properties: {
email: commonSchemas.email,
password: {
type: "string",
minLength: 10,
maxLength: 50,
},
},
required: ["email", "password"],
};
module.exports = {
"create": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Create User",
"description": "An object to create a new user",
"type": "object",
"properties": {
"email": sharedSchemas.email,
"password": {
"type": "string",
"minLength": 10,
"maxLength": 50
}
},
"required": ["email", "password"]
}
create,
};