From ca18febed8ce17f0388994a357e858b5b8b65689 Mon Sep 17 00:00:00 2001 From: Ethan Zimbelman Date: Mon, 8 Apr 2024 18:11:21 -0700 Subject: [PATCH] fix: include required attributes in function and workflow definitions --- functions/sample_function.ts | 2 +- workflows/sample_workflow.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/sample_function.ts b/functions/sample_function.ts index 8b6fade..4b1324b 100644 --- a/functions/sample_function.ts +++ b/functions/sample_function.ts @@ -23,7 +23,7 @@ export const SampleFunctionDefinition = DefineFunction({ description: "The user invoking the workflow", }, }, - required: ["message"], + required: ["message", "user"], }, output_parameters: { properties: { diff --git a/workflows/sample_workflow.ts b/workflows/sample_workflow.ts index 735829c..b827fbc 100644 --- a/workflows/sample_workflow.ts +++ b/workflows/sample_workflow.ts @@ -25,7 +25,7 @@ const SampleWorkflow = DefineWorkflow({ type: Schema.slack.types.user_id, }, }, - required: ["user", "interactivity"], + required: ["interactivity", "channel", "user"], }, });