From b1d53f1f998ca85bc9d8149b3bb9dd3acaa2996a Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 19 Oct 2022 00:34:47 +0200 Subject: [PATCH] fixed incorrect schema --- backend/src/api/schemas/filter-schema.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/api/schemas/filter-schema.ts b/backend/src/api/schemas/filter-schema.ts index 2dc62ea1d..91499bbf0 100644 --- a/backend/src/api/schemas/filter-schema.ts +++ b/backend/src/api/schemas/filter-schema.ts @@ -12,6 +12,10 @@ const FILTER_SCHEMA = { "Filter name invalid. Name cannot contain special characters or more than 16 characters. Can include _ . and -", "string.max": "Filter name exceeds maximum of 16 characters", }), + pb: joi.object({ + no: joi.bool().required(), + yes: joi.bool().required(), + }), difficulty: joi .object({ normal: joi.bool().required(),