From 79d87bca8c098332dbf6f2715dbc8a20b32eac91 Mon Sep 17 00:00:00 2001
From: Angshuman Sarkar <angshuonline@gmail.com>
Date: Sat, 12 Sep 2020 20:54:02 +0530
Subject: [PATCH] removing mandatory attributes for AuthMeta. AuthMeta itself
 is not mandatory.

---
 contracts/bridge.yaml  | 3 ---
 contracts/gateway.yaml | 5 ++---
 contracts/hip.yaml     | 4 +---
 contracts/hiu.yaml     | 5 +----
 4 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/contracts/bridge.yaml b/contracts/bridge.yaml
index 6dbcf01..4ea3554 100644
--- a/contracts/bridge.yaml
+++ b/contracts/bridge.yaml
@@ -1895,9 +1895,6 @@ components:
     
     AuthMeta:
       type: object
-      required:
-        - mode
-        - expiry
       properties:
         hint:
           type: string
diff --git a/contracts/gateway.yaml b/contracts/gateway.yaml
index e40fb63..fc6c3fd 100644
--- a/contracts/gateway.yaml
+++ b/contracts/gateway.yaml
@@ -3705,11 +3705,9 @@ components:
          2. DIRECT - for auth through apps (usually direct)
          3. AADHAAR_OTP - for auth using OTP sent to Aadhaar number
          4. DEMOGRAPHICS - for auth using demographic.
+    
     AuthMeta:
       type: object
-      required:
-        - mode
-        - expiry
       properties:
         hint:
           type: string
@@ -3718,6 +3716,7 @@ components:
           example: "2019-12-30T12:01:55Z"
       xml:
         name: Meta
+
     PatientAuthConfirmRequest:
       type: object
       required:
diff --git a/contracts/hip.yaml b/contracts/hip.yaml
index 80f2e4e..c375e14 100644
--- a/contracts/hip.yaml
+++ b/contracts/hip.yaml
@@ -2010,11 +2010,9 @@ components:
           $ref: '#/components/schemas/Error'
         resp:
           $ref: '#/components/schemas/RequestReference'
+    
     AuthMeta:
       type: object
-      required:
-        - mode
-        - expiry
       properties:
         hint:
           type: string
diff --git a/contracts/hiu.yaml b/contracts/hiu.yaml
index a9b53ba..91deef3 100644
--- a/contracts/hiu.yaml
+++ b/contracts/hiu.yaml
@@ -2184,12 +2184,9 @@ components:
           $ref: '#/components/schemas/Error'
         resp:
           $ref: '#/components/schemas/RequestReference'
-    
+        
     AuthMeta:
       type: object
-      required:
-        - mode
-        - expiry
       properties:
         hint:
           type: string