From c567f935f653504cc639922437fc99d87048b074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cipriani=20Bandarra?= Date: Fri, 30 Jan 2026 19:33:30 +0000 Subject: [PATCH] Add skip_serializing_if to PullRequest optional fields PullRequest now omits insecure and stream from serialized JSON when unset, consistent with all other request types in the codebase. Previously these fields serialized as null. --- src/types/pull.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/types/pull.rs b/src/types/pull.rs index eda931e..e90861a 100644 --- a/src/types/pull.rs +++ b/src/types/pull.rs @@ -3,7 +3,9 @@ use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize, Deserialize)] pub struct PullRequest { pub model: String, + #[serde(skip_serializing_if = "Option::is_none")] pub insecure: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub stream: Option, }