From 2f152910c9ac5e1565449719a7480308eb4fac0e Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 14 Aug 2026 18:42:34 +1200 Subject: [PATCH] fix: emit Project.wafEnabled for SDK 27 migration client --- src/Appwrite/Utopia/Response/Model/Project.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Appwrite/Utopia/Response/Model/Project.php b/src/Appwrite/Utopia/Response/Model/Project.php index c4c2fe0607..c86cedbe04 100644 --- a/src/Appwrite/Utopia/Response/Model/Project.php +++ b/src/Appwrite/Utopia/Response/Model/Project.php @@ -199,6 +199,12 @@ class Project extends Model 'default' => '', 'example' => self::TYPE_DATETIME_EXAMPLE, ]) + ->addRule('wafEnabled', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Whether WAF enforcement is enabled for the project.', + 'default' => false, + 'example' => false, + ]) ; } @@ -234,6 +240,7 @@ class Project extends Model $this->expandProtocols($document); $this->expandAuthMethods($document); $this->expandConsoleAccessedAt($document); + $document->setAttribute('wafEnabled', (bool) $document->getAttribute('wafEnabled', false)); return $document; }