From 3846034a44f2a0ffa5f7819b63ddf883b97b939c Mon Sep 17 00:00:00 2001 From: powermaker450 Date: Mon, 19 Aug 2024 00:50:14 -0400 Subject: [PATCH] Remove 'strict()' not sure what it does --- src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types.ts b/src/types.ts index d7f9214..485ef33 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,7 +1,7 @@ import { object, string, number, InferType } from "yup"; export const reviewSchema = object({ - username: string().strict(true).max(30).required(), + username: string().max(30).required(), rating: number() .positive() .max(5) @@ -11,8 +11,8 @@ export const reviewSchema = object({ (number) => (number! * 10) % 5 === 0, ) .required(), - title: string().strict(true).max(50).required(), - content: string().strict(true).max(2000).notRequired(), + title: string().max(50).required(), + content: string().max(2000).notRequired(), }); export type Review = InferType;