From f8f6300f526d9686745dc6daa422a3aa291488ea Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Sun, 22 Dec 2024 02:01:47 -0500 Subject: [PATCH] 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. --- src/responses.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/responses.rs b/src/responses.rs index cd2eb11..d8cba0f 100644 --- a/src/responses.rs +++ b/src/responses.rs @@ -593,6 +593,7 @@ pub struct DefinitionSet { } #[derive(Debug, Deserialize, Clone, Eq, PartialEq)] +#[serde(untagged)] pub enum HealthCheckFailureDetails { AlarmCheck(ClusterAlarmCheckDetails), NodeIsQuorumCritical(QuorumCriticalityCheckDetails),