Validate status selector for list tickets tool
This commit is contained in:
@@ -31,7 +31,9 @@ class ListTicketsByStatus extends Tool
|
||||
'project_id' => ['nullable', 'integer'],
|
||||
'status_name' => ['nullable', 'string'],
|
||||
'status_slug' => ['nullable', 'string'],
|
||||
'ticket_status_id' => ['nullable', 'integer'],
|
||||
'ticket_status_id' => ['nullable', 'integer', 'required_without_all:status_slug,status_name'],
|
||||
], [
|
||||
'ticket_status_id.required_without_all' => 'Provide ticket_status_id, status_slug, or status_name.',
|
||||
]);
|
||||
|
||||
$user = $this->kanbanGitMcp->user($request);
|
||||
|
||||
Reference in New Issue
Block a user