Skip to content

Commit

Permalink
cdp: do not throw error on json parse for unknown fields
Browse files Browse the repository at this point in the history
Signed-off-by: Francis Bouvier <[email protected]>
  • Loading branch information
francisbouvier committed Dec 8, 2024
1 parent 4b8c3cb commit 6e7d642
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cdp/msg.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 6e7d642

Please sign in to comment.