From 9698a0b5674b11ee85e3c3348cb236c4e5d4f065 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 16 Mar 2024 18:09:12 +0000 Subject: [PATCH] fix: add missing required properties to shields.io schema --- OliverBooth/Controllers/BadgeController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OliverBooth/Controllers/BadgeController.cs b/OliverBooth/Controllers/BadgeController.cs index 365908a..7d780d8 100644 --- a/OliverBooth/Controllers/BadgeController.cs +++ b/OliverBooth/Controllers/BadgeController.cs @@ -63,10 +63,10 @@ public sealed class BadgeController : ControllerBase _ => "unknown" }; - return Ok(new { color, message }); + return Ok(new { schemaVersion = 1, label = "build", color, message }); } - return Ok(new { color = "lightgray", message = "unknown" }); + return Ok(new { schemaVersion = 1, label = "build", color = "lightgray", message = "unknown" }); } private class WorkflowRunSchema