Skip to content

Commit f8f6300

Browse files
Node-is-quorum-critical health check: correct enum tagging
API response is "flat", as in, it is not wrapped into an object representing those variants. So parse them by mapping fields to top-level JSON document keys.
1 parent cb6a22a commit f8f6300

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/responses.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ pub struct DefinitionSet {
593593
}
594594

595595
#[derive(Debug, Deserialize, Clone, Eq, PartialEq)]
596+
#[serde(untagged)]
596597
pub enum HealthCheckFailureDetails {
597598
AlarmCheck(ClusterAlarmCheckDetails),
598599
NodeIsQuorumCritical(QuorumCriticalityCheckDetails),

0 commit comments

Comments
 (0)