Skip to content

Commit 6e7d642

Browse files
cdp: do not throw error on json parse for unknown fields
Signed-off-by: Francis Bouvier <[email protected]>
1 parent 4b8c3cb commit 6e7d642

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cdp/msg.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ pub const IncomingMessage = struct {
150150

151151
// parse "params"
152152
const options = std.json.ParseOptions{
153+
.ignore_unknown_fields = true,
153154
.max_value_len = self.scanner.input.len,
154155
.allocate = .alloc_always,
155156
};

0 commit comments

Comments
 (0)