From 7dc6b1d91d433c2f9b44b57522e9339152824ef5 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 14 Nov 2024 16:19:08 +0100 Subject: [PATCH] Remove `deny_unknown_fields` from `dora-message` type definitions To ensure forward compatiblity --- libraries/message/src/config.rs | 2 +- libraries/message/src/descriptor.rs | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libraries/message/src/config.rs b/libraries/message/src/config.rs index 69d8edc4..203a302f 100644 --- a/libraries/message/src/config.rs +++ b/libraries/message/src/config.rs @@ -36,7 +36,7 @@ pub struct NodeRunConfig { } #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] -#[serde(deny_unknown_fields, from = "InputDef", into = "InputDef")] +#[serde(from = "InputDef", into = "InputDef")] pub struct Input { pub mapping: InputMapping, pub queue_size: Option, diff --git a/libraries/message/src/descriptor.rs b/libraries/message/src/descriptor.rs index f45e0f5f..a84963e3 100644 --- a/libraries/message/src/descriptor.rs +++ b/libraries/message/src/descriptor.rs @@ -150,11 +150,7 @@ pub enum OperatorSource { Wasm(String), } #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] -#[serde( - deny_unknown_fields, - from = "PythonSourceDef", - into = "PythonSourceDef" -)] +#[serde(from = "PythonSourceDef", into = "PythonSourceDef")] pub struct PythonSource { pub source: String, pub conda_env: Option,