Skip to content

Commit

Permalink
fix(api): serde default when missing for property filter (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-prosser authored Oct 8, 2024
1 parent 1ff021b commit c9a783a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
- Round trip `field_id`
- Add `ixp` dataset flag
- rename label def description to instructions
- Default value for PropertyValue


# v0.33.1
- Fix selection index issue on custom label trend reports
Expand Down
6 changes: 3 additions & 3 deletions api/src/resources/comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ pub struct UserPropertiesFilter(pub HashMap<UserPropertyName, PropertyFilter>);

#[derive(Default, Debug, Clone, Serialize, Deserialize)]
pub struct PropertyFilter {
#[serde(skip_serializing_if = "<[_]>::is_empty")]
#[serde(skip_serializing_if = "<[_]>::is_empty", default)]
pub one_of: Vec<PropertyValue>,
#[serde(skip_serializing_if = "<[_]>::is_empty")]
#[serde(skip_serializing_if = "<[_]>::is_empty", default)]
pub not_one_of: Vec<PropertyValue>,
#[serde(skip_serializing_if = "<[_]>::is_empty")]
#[serde(skip_serializing_if = "<[_]>::is_empty", default)]
pub domain_not_one_of: Vec<PropertyValue>,
#[serde(skip_serializing_if = "Option::is_none")]
pub minimum: Option<NotNan<f64>>,
Expand Down

0 comments on commit c9a783a

Please sign in to comment.