cdp: do not throw error on json parse for unknown fields

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier committed 2024-12-08 15:27:12 +01:00
1 parent 4b8c3cb188
commit 6e7d6421d5
1 file changed
+1
+1
View File
@@ -150,6 +150,7 @@ pub const IncomingMessage = struct {
// parse "params"
const options = std.json.ParseOptions{
.ignore_unknown_fields = true,
.max_value_len = self.scanner.input.len,
.allocate = .alloc_always,
};