From 1a9e34c3694add7a78796fc8281579afc0f5d128 Mon Sep 17 00:00:00 2001 From: varun Date: Thu, 2 Feb 2023 00:12:15 -0500 Subject: [PATCH] added fields in user --- src/routes/usersRoute.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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: [], }, ],