From d7a0aaf25dc3ad1fcb8cb3545188df2bbe0228d1 Mon Sep 17 00:00:00 2001 From: Chris Miller Date: Mon, 3 Nov 2025 15:40:25 -0800 Subject: [PATCH 1/2] Fix: Add type=int to ID arguments to prevent validation errors - Add type=int to recipe start/stop --id options - Add type=int to recipe start/stop --folder-id options - Add type=int to connection --connection-id and --id options - Add type=int to connection --parent-id option Resolves validation error: 'Input should be a valid integer [type=int_type, input_value='67040776', input_type=str]' --- src/workato_platform_cli/cli/commands/connections.py | 6 +++--- src/workato_platform_cli/cli/commands/recipes/command.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/workato_platform_cli/cli/commands/connections.py b/src/workato_platform_cli/cli/commands/connections.py index 83c9181..a002f75 100644 --- a/src/workato_platform_cli/cli/commands/connections.py +++ b/src/workato_platform_cli/cli/commands/connections.py @@ -369,7 +369,7 @@ async def create_oauth( @connections.command() -@click.option("--connection-id", required=True, help="ID of the connection to update") +@click.option("--connection-id", required=True, type=int, help="ID of the connection to update") @click.option("--name", help="New name for the connection") @click.option( "--parent-id", help="ID of the parent connection (must be same provider type)" @@ -535,7 +535,7 @@ async def update_connection( @connections.command(name="list") @click.option("--folder-id", type=int, help="Filter by folder ID") -@click.option("--parent-id", help="Filter by parent connection ID") +@click.option("--parent-id", type=int, help="Filter by parent connection ID") @click.option("--external-id", help="Filter by external ID") @click.option( "--include-runtime", is_flag=True, help="Include runtime user connections" @@ -864,7 +864,7 @@ def show_connection_statistics(connections: list[Connection]) -> None: @connections.command(name="pick-list") -@click.option("--id", required=True, help="Connection ID") +@click.option("--id", required=True, type=int, help="Connection ID") @click.option("--pick-list-name", required=True, help="Name of the pick list") @click.option( "--params", diff --git a/src/workato_platform_cli/cli/commands/recipes/command.py b/src/workato_platform_cli/cli/commands/recipes/command.py index 3f3c9ba..12a138d 100644 --- a/src/workato_platform_cli/cli/commands/recipes/command.py +++ b/src/workato_platform_cli/cli/commands/recipes/command.py @@ -276,11 +276,11 @@ async def validate( @recipes.command() -@click.option("--id", "recipe_id", help="Recipe ID to start") +@click.option("--id", "recipe_id", type=int, help="Recipe ID to start") @click.option( "--all", "start_all", is_flag=True, help="Start all recipes in current project" ) -@click.option("--folder-id", help="Start all recipes in specified folder") +@click.option("--folder-id", type=int, help="Start all recipes in specified folder") @handle_cli_exceptions @handle_api_exceptions async def start( @@ -315,11 +315,11 @@ async def start( @recipes.command() -@click.option("--id", "recipe_id", help="Recipe ID to stop") +@click.option("--id", "recipe_id", type=int, help="Recipe ID to stop") @click.option( "--all", "stop_all", is_flag=True, help="Stop all recipes in current project" ) -@click.option("--folder-id", help="Stop all recipes in specified folder") +@click.option("--folder-id", type=int, help="Stop all recipes in specified folder") async def stop( recipe_id: int, stop_all: bool, From 19c5a99d2864ef762523459f83a1fae2b5a00c17 Mon Sep 17 00:00:00 2001 From: Chris Miller Date: Mon, 3 Nov 2025 17:13:59 -0800 Subject: [PATCH 2/2] Fix: Line length lint error in connections.py --- src/workato_platform_cli/cli/commands/connections.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/workato_platform_cli/cli/commands/connections.py b/src/workato_platform_cli/cli/commands/connections.py index a002f75..5eaa4c6 100644 --- a/src/workato_platform_cli/cli/commands/connections.py +++ b/src/workato_platform_cli/cli/commands/connections.py @@ -369,7 +369,9 @@ async def create_oauth( @connections.command() -@click.option("--connection-id", required=True, type=int, help="ID of the connection to update") +@click.option( + "--connection-id", required=True, type=int, help="ID of the connection to update" +) @click.option("--name", help="New name for the connection") @click.option( "--parent-id", help="ID of the parent connection (must be same provider type)"