From 46b0de367a7a3ed12f14db99ba0b25c1117e54d2 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 12 Dec 2024 10:40:55 +0000 Subject: [PATCH] fix: strings --- application/api/user/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/user/routes.py b/application/api/user/routes.py index efb0242d..a5807b81 100644 --- a/application/api/user/routes.py +++ b/application/api/user/routes.py @@ -1796,7 +1796,7 @@ class CreateTool(Resource): { "name": fields.String(required=True, description="Name of the tool"), "config": fields.Raw(required=True, description="Configuration of the tool"), - "actions": fields.List(required=True, description="Actions the tool can perform"), + "actions": fields.List(fields.String, required=True, description="Actions the tool can perform"), "status": fields.Boolean(required=True, description="Status of the tool") }, @@ -1862,7 +1862,7 @@ class UpdateToolActions(Resource): "UpdateToolActionsModel", { "id": fields.String(required=True, description="Tool ID"), - "actions": fields.List(required=True, description="Actions the tool can perform"), + "actions": fields.List(fields.String, required=True, description="Actions the tool can perform"), }, )