From 9b1a6d7a9c15cb7758a37ec1b66cd410eb573ff6 Mon Sep 17 00:00:00 2001 From: Vignesh-Kalyanasundaram Date: Fri, 11 Oct 2024 17:13:44 +0530 Subject: [PATCH] EDGPATRON-151 Adding new api contract for Post and get api of LC User registration --- ramls/staging_user.json | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ramls/staging_user.json b/ramls/staging_user.json index b52298a..4c5669c 100644 --- a/ramls/staging_user.json +++ b/ramls/staging_user.json @@ -35,7 +35,9 @@ "description": "Last name of the patron", "type": "string" } - } + }, + "required": ["firstName", "lastName"], + "additionalProperties": false }, "addressInfo": { "type": "object", @@ -65,7 +67,8 @@ "description": "Country", "type": "string" } - } + }, + "additionalProperties": false }, "contactInfo": { "type": "object", @@ -83,14 +86,16 @@ "description": "Email of the patron", "type": "string" } - } + }, + "required": ["email"], + "additionalProperties": false }, "preferredEmailCommunication": { "type": "array", - "description": "Email communication info of external patron", + "description": "Preferred email communication types", "items": { "type": "string", - "enum": ["Support", "Programs", "Service"] + "enum": ["Support", "Programs", "Services"] }, "maxItems": 3, "uniqueItems": true