From 3d19959006420baaa9b9781c0da4fab09186a4c3 Mon Sep 17 00:00:00 2001 From: Leo Romanovsky Date: Wed, 27 Nov 2024 09:21:51 -0800 Subject: [PATCH] Make UniversalFlagConfigWire.format optional (#76) * Make UniversalFlagConfigWire.format optional * Update eppo_core/src/ufc/models.rs Co-authored-by: Oleksii Shmalko --------- Co-authored-by: Oleksii Shmalko --- eppo_core/src/ufc/models.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eppo_core/src/ufc/models.rs b/eppo_core/src/ufc/models.rs index 2a024a94..a0fbfd8e 100644 --- a/eppo_core/src/ufc/models.rs +++ b/eppo_core/src/ufc/models.rs @@ -18,7 +18,8 @@ pub type Timestamp = chrono::DateTime; pub(crate) struct UniversalFlagConfigWire { /// When configuration was last updated. pub created_at: Timestamp, - pub format: AssignmentFormat, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub format: Option, /// Environment this configuration belongs to. pub environment: Environment, /// Flags configuration.