Skip to content

Commit 4853525

Browse files
Merge pull request #324 from lightpanda-io/json_parse_unknown_field
cdp: do not throw error on json parse for unknown fields
2 parents bcdcfee + 6e7d642 commit 4853525

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)