From 899b4ee77dd6c0a40e179f7b4a679fb2683496ff Mon Sep 17 00:00:00 2001 From: Donkie Date: Tue, 4 Jul 2023 12:10:45 +0200 Subject: [PATCH] Fixed health check return type --- spoolman/api/v1/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spoolman/api/v1/router.py b/spoolman/api/v1/router.py index 62c0955..6915b5c 100644 --- a/spoolman/api/v1/router.py +++ b/spoolman/api/v1/router.py @@ -36,7 +36,7 @@ async def itemnotfounderror_exception_handler(_request: Request, exc: ItemNotFou @app.get("/health") async def health() -> models.HealthCheck: """Return a health check.""" - return {"status": "healthy"} + return models.HealthCheck(status="healthy") app.include_router(filament.router)