fix: emit Project.wafEnabled for SDK 27 migration client

This commit is contained in:
Jake Barnby committed 2026-08-14 18:42:34 +12:00
1 parent 80ec23caa6
commit 2f152910c9
1 file changed
+7
@@ -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;
}