From 670c7cc459ca320918ab0a4a814b8aa1b436b356 Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Thu, 2 Jan 2025 08:34:46 -0500 Subject: [PATCH] fix: invalid serialization of CheckHealthError --- crates/service/src/routes/health.rs | 2 +- docs/Queries.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/service/src/routes/health.rs b/crates/service/src/routes/health.rs index 31044a31..f0aa9ec1 100644 --- a/crates/service/src/routes/health.rs +++ b/crates/service/src/routes/health.rs @@ -36,7 +36,7 @@ impl IntoResponse for CheckHealthError { CheckHealthError::RequestFailed => StatusCode::BAD_GATEWAY, }; let body = serde_json::json!({ - "error": self.to_string(), + "errors": [self.to_string()], }); (status, Json(body)).into_response() } diff --git a/docs/Queries.md b/docs/Queries.md index 489674b1..6ef6774c 100644 --- a/docs/Queries.md +++ b/docs/Queries.md @@ -98,7 +98,7 @@ curl http://localhost:7600/subgraphs/health/QmacQnSgia4iDPWHpeY6aWxesRFdb8o5DKZU ```json { - "error": "Deployment not found" + "errors": ["Deployment not found"] } ```