cdp: handle nullable Type for params

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2024-12-04 22:39:54 +01:00
parent 4b8c3cb188
commit 53dd0a5e4c
3 changed files with 42 additions and 3 deletions

View File

@@ -184,7 +184,7 @@ fn getTargetInfo(
const Params = struct {
targetId: ?[]const u8 = null,
};
const input = try Input(Params).get(alloc, msg);
const input = try Input(?Params).get(alloc, msg);
defer input.deinit();
log.debug("Req > id {d}, method {s}", .{ input.id, "target.getTargetInfo" });