Skip to content

Commit

Permalink
Add JSON_DEPTH to validation endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
donhardman committed Jan 17, 2025
1 parent fdba861 commit 1ebe4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Network/Struct.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 1ebe4f9

Please sign in to comment.