push: Allow to deserialize (New)ConditionalPushRule without conditions
This commit is contained in:
parent
5d0ac84ff8
commit
9b07772d1a
@ -1,5 +1,9 @@
|
||||
# [unreleased]
|
||||
|
||||
Bug fixes:
|
||||
|
||||
- Allow to deserialize `(New)ConditionalPushRule` with a missing `conditions` field.
|
||||
|
||||
# 0.12.0
|
||||
|
||||
Bug fixes:
|
||||
|
@ -466,6 +466,7 @@ pub struct ConditionalPushRule {
|
||||
/// event.
|
||||
///
|
||||
/// A rule with no conditions always matches.
|
||||
#[serde(default)]
|
||||
pub conditions: Vec<PushCondition>,
|
||||
}
|
||||
|
||||
@ -870,6 +871,7 @@ pub struct NewConditionalPushRule {
|
||||
/// event.
|
||||
///
|
||||
/// A rule with no conditions always matches.
|
||||
#[serde(default)]
|
||||
pub conditions: Vec<PushCondition>,
|
||||
|
||||
/// Actions to determine if and how a notification is delivered for events matching this
|
||||
|
Loading…
x
Reference in New Issue
Block a user