Skip to content

Commit

Permalink
Node-is-quorum-critical health check: correct enum tagging
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
michaelklishin committed Dec 22, 2024
1 parent cb6a22a commit f8f6300
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ pub struct DefinitionSet {
}

#[derive(Debug, Deserialize, Clone, Eq, PartialEq)]
#[serde(untagged)]
pub enum HealthCheckFailureDetails {
AlarmCheck(ClusterAlarmCheckDetails),
NodeIsQuorumCritical(QuorumCriticalityCheckDetails),
Expand Down

0 comments on commit f8f6300

Please sign in to comment.