From a59cff5933dea98db6e1b23882aaa37dca4d71c3 Mon Sep 17 00:00:00 2001 From: heisner-tillman Date: Tue, 2 Apr 2024 19:46:00 +0200 Subject: [PATCH] Refine typing of fields in ExecuteToolPayload model --- lib/galaxy/schema/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/schema/tools.py b/lib/galaxy/schema/tools.py index 1cea9f5f0456..77db23244568 100644 --- a/lib/galaxy/schema/tools.py +++ b/lib/galaxy/schema/tools.py @@ -11,6 +11,7 @@ ConfigDict, Field, field_validator, + UUID4, ) from galaxy.schema.fields import DecodedDatabaseIdField @@ -25,12 +26,12 @@ class ExecuteToolPayload(Model): - tool_id: Optional[Any] = Field( + tool_id: Optional[str] = Field( default=None, title="Tool ID", description="The ID of the tool to execute.", ) - tool_uuid: Optional[Any] = Field( + tool_uuid: Optional[UUID4] = Field( default=None, title="Tool UUID", description="The UUID of the tool to execute.",