From b6464d0513095f21de52350d3938d83acb26be3e Mon Sep 17 00:00:00 2001 From: Rishikesh Yadav <120367811+rishikesh-y@users.noreply.github.com> Date: Thu, 9 Nov 2023 11:12:45 +0530 Subject: [PATCH] [SKIT-428]: Added AI as category (#170) * Added AI as category * incremented version --- package.json | 2 +- src/interfaces/dAppSchema.ts | 3 ++- src/schemas/merokuDappStore.dAppSchema.json | 27 ++++++++++++++++++++- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1afa554..71bebe9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@merokudao/dapp-store-registry", - "version": "0.1.101", + "version": "0.1.102", "description": "The dApp Store registry for MerokuDAO dAapp Store", "repository": { "type": "git", diff --git a/src/interfaces/dAppSchema.ts b/src/interfaces/dAppSchema.ts index 3997972..1f397f8 100644 --- a/src/interfaces/dAppSchema.ts +++ b/src/interfaces/dAppSchema.ts @@ -27,7 +27,8 @@ export const dAppCategory = [ "social-networking", "sports", "travel", - "utilities" + "utilities", + "Ai" ] as const; export type DAppCategory = (typeof dAppCategory)[number]; diff --git a/src/schemas/merokuDappStore.dAppSchema.json b/src/schemas/merokuDappStore.dAppSchema.json index f08c416..6ac37ff 100644 --- a/src/schemas/merokuDappStore.dAppSchema.json +++ b/src/schemas/merokuDappStore.dAppSchema.json @@ -203,7 +203,8 @@ "social-networking", "sports", "travel", - "utilities" + "utilities", + "Ai" ] }, "subCategory": { @@ -694,6 +695,30 @@ } } } + }, + { + "if": { + "properties": { + "category": { + "const": "Ai" + } + } + }, + "then": { + "properties": { + "subCategory": { + "enum": [ + "text", + "image", + "audio", + "video", + "business", + "code", + "others" + ] + } + } + } } ], "required": [