From 6859643b61704a2dba447eef6bdade52fadd513f Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Mon, 14 Jul 2025 10:30:37 -0400 Subject: [PATCH] types: don't serialize a null NewOrder.profiles field --- src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types.rs b/src/types.rs index 2a8a833..6a8d408 100644 --- a/src/types.rs +++ b/src/types.rs @@ -415,6 +415,7 @@ pub struct NewOrder<'a> { pub(crate) replaces: Option>, /// Identifiers to be included in the order identifiers: &'a [Identifier], + #[serde(skip_serializing_if = "Option::is_none")] profile: Option<&'a str>, }