From 13063e2a0bcf0d0a6de11a8e255a4a4d2bf30637 Mon Sep 17 00:00:00 2001 From: topshenyi-web Date: Mon, 3 Feb 2025 14:45:52 -0500 Subject: [PATCH] fix: make joi and typescript interface consistent: --- src/types/joiLocationTypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/joiLocationTypes.ts b/src/types/joiLocationTypes.ts index ad2047e..cd4832c 100644 --- a/src/types/joiLocationTypes.ts +++ b/src/types/joiLocationTypes.ts @@ -15,7 +15,7 @@ const ITimeSlotJoiSchema = Joi.object({ }); const ISpecialJoiSchema = Joi.object({ title: string.required(), - description: string.allow(''), + description: string.required().allow(''), }); // Note: Keys without .required() are optional by default