From af0c111d2e7e9744abf73c34c59d62b100007622 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Tue, 9 Aug 2022 13:00:16 +0100 Subject: [PATCH] Rollback Func Correctly --- src/Appwrite/Utopia/Response/Model/Func.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Appwrite/Utopia/Response/Model/Func.php b/src/Appwrite/Utopia/Response/Model/Func.php index eadd6a79c..716b67eec 100644 --- a/src/Appwrite/Utopia/Response/Model/Func.php +++ b/src/Appwrite/Utopia/Response/Model/Func.php @@ -61,6 +61,12 @@ class Func extends Model 'default' => '', 'example' => '5e5ea5c16897e', ]) + ->addRule('vars', [ + 'type' => self::TYPE_JSON, + 'description' => 'Function environment variables.', + 'default' => new \stdClass(), + 'example' => ['key' => 'value'], + ]) ->addRule('events', [ 'type' => self::TYPE_STRING, 'description' => 'Function trigger events.',