From f887eb6de733f20b2dc88bb4951888b572f496d9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 05:34:11 +0000 Subject: [PATCH] Fix validation error when saving scripts by allowing unknown fields in POST /scripts Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- back/api/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/api/script.ts b/back/api/script.ts index 9ad9beb4..e63b3a56 100644 --- a/back/api/script.ts +++ b/back/api/script.ts @@ -130,7 +130,7 @@ export default (app: Router) => { originFilename: Joi.string().optional().allow(''), directory: Joi.string().optional().allow(''), file: Joi.string().optional().allow(''), - }), + }).unknown(true), }), async (req: Request, res: Response, next: NextFunction) => { try {