Skip to content

Commit

Permalink
remove skip_serialize_if as it breaks deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Binh Vu committed Sep 23, 2023
1 parent 09fc15c commit ab1336d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kgdata"
version = "3.5.1"
version = "3.5.2"
edition = "2021"
readme = "README.md"
homepage = "https://github.com/binh-vu/kgdata"
Expand Down
2 changes: 0 additions & 2 deletions src/models/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ pub struct Quantity {
// The nominal value of the quantity, as an arbitrary precision decimal string. The string always starts with a character indicating the sign of the value, either “+” or “-”.
pub amount: String,
// Optionally, the upper bound of the quantity's uncertainty interval, using the same notation as the amount field. If not given or null, the uncertainty (or precision) of the quantity is not known. If the upperBound field is given, the lowerBound field must also be given.
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(rename = "upperBound")]
pub upper_bound: Option<String>,
// Optionally, the lower bound of the quantity's uncertainty interval, using the same notation as the amount field. If not given or null, the uncertainty (or precision) of the quantity is not known. If the lowerBound field is given, the upperBound field must also be given.
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(rename = "lowerBound")]
pub lower_bound: Option<String>,
// The URI of a unit (or “1” to indicate a unit-less quantity). This would typically refer to a data item on wikidata.org, e.g. http://www.wikidata.org/entity/Q712226 for “square kilometer”.
Expand Down

0 comments on commit ab1336d

Please sign in to comment.