diff --git a/src/routes/usersRoute.js b/src/routes/usersRoute.js index 12f96e68..70ae45f4 100644 --- a/src/routes/usersRoute.js +++ b/src/routes/usersRoute.js @@ -347,7 +347,16 @@ module.exports = function (fastify, opts, next) { firstName: { type: "string" }, lastName: { type: "string" }, username: { type: "string" }, - email: { type: "string" }, + emails: { + type: "array", + maxItems: 2, + items: { + type: "object", + properties: { + email: { type: "string", default: null }, + }, + }, + }, address1: { type: "string" }, address2: { type: "string" }, city: { type: "string" }, @@ -357,7 +366,7 @@ module.exports = function (fastify, opts, next) { }, }, security: [ - { + { basicAuth: [], }, ],