From 62ebee77b5cc4ae5b8017afbea3fd094b308ae78 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 29 Jun 2023 13:34:23 +0200 Subject: [PATCH] stricter schema --- backend/src/api/routes/presets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/routes/presets.ts b/backend/src/api/routes/presets.ts index 802c49924..f02d85694 100644 --- a/backend/src/api/routes/presets.ts +++ b/backend/src/api/routes/presets.ts @@ -33,7 +33,7 @@ router.post( body: { name: presetNameSchema, config: configSchema.keys({ - tags: joi.array().items(joi.string()), + tags: joi.array().items(joi.string().token().max(50)), }), }, }),