Skip to content

Commit 9cd527a

Browse files
authored
Fix deserialization of Series in case of no values (#75)
1 parent f9668a8 commit 9cd527a

File tree

1 file changed

+2
-1
lines changed
  • influxdb/src/integrations/serde_integration

1 file changed

+2
-1
lines changed

influxdb/src/integrations/serde_integration/de.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ where
8080
}
8181
}
8282
let name = name.ok_or_else(|| Error::missing_field("name"))?;
83-
let values = values.ok_or_else(|| Error::missing_field("values"))?;
83+
let values = values.unwrap_or_default();
84+
8485
Ok(Series { name, values })
8586
}
8687
}

0 commit comments

Comments
 (0)