Skip to content

Commit

Permalink
fix: add required attributes to function and workflow definition inpu…
Browse files Browse the repository at this point in the history
…ts (#63)
  • Loading branch information
zimeg authored Apr 9, 2024
1 parent a4a6801 commit 80b3d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/sample_function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const SampleFunctionDefinition = DefineFunction({
description: "The user invoking the workflow",
},
},
required: ["message"],
required: ["message", "user"],
},
output_parameters: {
properties: {
Expand Down
2 changes: 1 addition & 1 deletion workflows/sample_workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const SampleWorkflow = DefineWorkflow({
type: Schema.slack.types.user_id,
},
},
required: ["user", "interactivity"],
required: ["interactivity", "channel", "user"],
},
});

Expand Down

0 comments on commit 80b3d37

Please sign in to comment.