From 7a9faf524392a584c1e771ae4f307f200542b427 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Fri, 5 Sep 2025 16:19:59 +0530 Subject: [PATCH] changed json to array --- src/Appwrite/Utopia/Response/Model/AttributeLine.php | 4 ++-- src/Appwrite/Utopia/Response/Model/AttributePoint.php | 4 ++-- src/Appwrite/Utopia/Response/Model/AttributePolygon.php | 4 ++-- src/Appwrite/Utopia/Response/Model/ColumnLine.php | 4 ++-- src/Appwrite/Utopia/Response/Model/ColumnPoint.php | 2 +- src/Appwrite/Utopia/Response/Model/ColumnPolygon.php | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Appwrite/Utopia/Response/Model/AttributeLine.php b/src/Appwrite/Utopia/Response/Model/AttributeLine.php index 0097025850..4f8ed60e89 100644 --- a/src/Appwrite/Utopia/Response/Model/AttributeLine.php +++ b/src/Appwrite/Utopia/Response/Model/AttributeLine.php @@ -12,11 +12,11 @@ class AttributeLine extends Attribute $this ->addRule('default', [ - 'type' => self::TYPE_JSON, + 'type' => self::TYPE_ARRAY, 'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.', 'default' => null, 'required' => false, - 'example' => '[[0, 0], [1, 1]]' + 'example' => [[0, 0], [1, 1]] ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/AttributePoint.php b/src/Appwrite/Utopia/Response/Model/AttributePoint.php index 33355267d7..19f7056b41 100644 --- a/src/Appwrite/Utopia/Response/Model/AttributePoint.php +++ b/src/Appwrite/Utopia/Response/Model/AttributePoint.php @@ -12,11 +12,11 @@ class AttributePoint extends Attribute $this ->addRule('default', [ - 'type' => self::TYPE_JSON, + 'type' => self::TYPE_ARRAY, 'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.', 'default' => null, 'required' => false, - 'example' => '[0, 0]' + 'example' => [0, 0] ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/AttributePolygon.php b/src/Appwrite/Utopia/Response/Model/AttributePolygon.php index 5804502af5..13caa19ccf 100644 --- a/src/Appwrite/Utopia/Response/Model/AttributePolygon.php +++ b/src/Appwrite/Utopia/Response/Model/AttributePolygon.php @@ -12,11 +12,11 @@ class AttributePolygon extends Attribute $this ->addRule('default', [ - 'type' => self::TYPE_JSON, + 'type' => self::TYPE_ARRAY, 'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.', 'default' => null, 'required' => false, - 'example' => '[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]' + 'example' => [[[0, 0], [0, 10]], [[10, 10], [0, 0]]] ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/ColumnLine.php b/src/Appwrite/Utopia/Response/Model/ColumnLine.php index ea77c24e6b..e46741d0f3 100644 --- a/src/Appwrite/Utopia/Response/Model/ColumnLine.php +++ b/src/Appwrite/Utopia/Response/Model/ColumnLine.php @@ -12,11 +12,11 @@ class ColumnLine extends Column $this ->addRule('default', [ - 'type' => self::TYPE_JSON, + 'type' => self::TYPE_ARRAY, 'description' => 'Default value for column when not provided. Cannot be set when column is required.', 'default' => null, 'required' => false, - 'example' => '[[0, 0], [1, 1]]' + 'example' => [[0, 0], [1, 1]] ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/ColumnPoint.php b/src/Appwrite/Utopia/Response/Model/ColumnPoint.php index b3e70f9888..ccc68b283b 100644 --- a/src/Appwrite/Utopia/Response/Model/ColumnPoint.php +++ b/src/Appwrite/Utopia/Response/Model/ColumnPoint.php @@ -16,7 +16,7 @@ class ColumnPoint extends Column 'description' => 'Default value for column when not provided. Cannot be set when column is required.', 'default' => null, 'required' => false, - 'example' => '[0, 0]' + 'example' => [0, 0] ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php b/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php index 77460f63cc..811b51fdc1 100644 --- a/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php +++ b/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php @@ -12,11 +12,11 @@ class ColumnPolygon extends Column $this ->addRule('default', [ - 'type' => self::TYPE_JSON, + 'type' => self::TYPE_ARRAY, 'description' => 'Default value for column when not provided. Cannot be set when column is required.', 'default' => null, 'required' => false, - 'example' => '[[[0, 0], [0, 10]], [[10, 10], [0, 0]]]' + 'example' => [[[0, 0], [0, 10]], [[10, 10], [0, 0]]] ]) ; }