Skip to content

Commit

Permalink
fix: make joi and typescript interface consistent:
Browse files Browse the repository at this point in the history
  • Loading branch information
cirex-web committed Feb 3, 2025
1 parent b5d0fdd commit 13063e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/joiLocationTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13063e2

Please sign in to comment.