From 1ebe4f90660de7dc7b145ff3ad705a07373e039f Mon Sep 17 00:00:00 2001 From: Don Hardman Date: Fri, 17 Jan 2025 16:02:06 +0700 Subject: [PATCH] Add JSON_DEPTH to validation endpoint --- src/Network/Struct.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Struct.php b/src/Network/Struct.php index 6142209..ec6ce36 100644 --- a/src/Network/Struct.php +++ b/src/Network/Struct.php @@ -111,7 +111,7 @@ public function addBigIntField(string $field): void { * @return bool */ public static function isValid(string $json): bool { - return simdjson_is_valid($json); + return simdjson_is_valid($json, static::JSON_DEPTH); } /**