Skip to content

Commit

Permalink
Remove deny_unknown_fields from dora-message type definitions
Browse files Browse the repository at this point in the history
To ensure forward compatiblity
  • Loading branch information
phil-opp committed Nov 14, 2024
1 parent b669971 commit 7dc6b1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libraries/message/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<usize>,
Expand Down
6 changes: 1 addition & 5 deletions libraries/message/src/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
Expand Down

0 comments on commit 7dc6b1d

Please sign in to comment.