From f4f3017e87f79c1627af0a845bcf2e158a2bde27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Camith-skyflow=E2=80=9D?= <“amit@skyflow.com”> Date: Mon, 4 Nov 2024 18:38:47 +0530 Subject: [PATCH] SK-1621: fix connections validation --- src/utils/validations/index.ts | 2 +- src/vault/types/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/validations/index.ts b/src/utils/validations/index.ts index 3c3be8e..bc4072d 100644 --- a/src/utils/validations/index.ts +++ b/src/utils/validations/index.ts @@ -883,7 +883,7 @@ function isStringKeyValueMap(obj: any): obj is StringKeyValueMapType { } for (const key in obj) { - if (typeof key !== 'string' || typeof obj[key] !== 'string') { + if (typeof key !== 'string' || (typeof obj[key] !== 'object' && typeof obj[key] !== 'string')) { return false; } } diff --git a/src/vault/types/index.ts b/src/vault/types/index.ts index e4f46e1..5d5561f 100644 --- a/src/vault/types/index.ts +++ b/src/vault/types/index.ts @@ -35,7 +35,7 @@ export interface queryResponseType { } export interface StringKeyValueMapType { - [key: string]: string; + [key: string]: object | string; } export interface tokenizeRequestType {