Skip to content

Commit

Permalink
fix: run fields_mismatch against static_schema data also
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Jan 20, 2025
1 parent 6c5f2aa commit 0aa4fd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/event/format/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ impl EventFormat for Event {
}
};

if !static_schema_flag
&& value_arr
if value_arr
.iter()
.any(|value| fields_mismatch(&schema, value, schema_version))
{
Expand Down

0 comments on commit 0aa4fd8

Please sign in to comment.