From eb60aeb4dd52784ae4ae1bfbe596c62ce12d4748 Mon Sep 17 00:00:00 2001 From: Tim Bastin <38261809+timbastin@users.noreply.github.com> Date: Wed, 5 Nov 2025 18:02:22 +0100 Subject: [PATCH] Fixes missing TLPLabel type for TLPLabel constants --- csaf/models.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/csaf/models.go b/csaf/models.go index 983bf9c..d079e5a 100644 --- a/csaf/models.go +++ b/csaf/models.go @@ -26,23 +26,23 @@ type TLPLabel string const ( // TLPLabelUnlabeled is the 'UNLABELED' policy. - TLPLabelUnlabeled = "UNLABELED" + TLPLabelUnlabeled TLPLabel = "UNLABELED" // TLPLabelWhite is the 'WHITE' policy. - TLPLabelWhite = "WHITE" + TLPLabelWhite TLPLabel = "WHITE" // TLPLabelGreen is the 'GREEN' policy. - TLPLabelGreen = "GREEN" + TLPLabelGreen TLPLabel = "GREEN" // TLPLabelAmber is the 'AMBER' policy. - TLPLabelAmber = "AMBER" + TLPLabelAmber TLPLabel = "AMBER" // TLPLabelRed is the 'RED' policy. - TLPLabelRed = "RED" + TLPLabelRed TLPLabel = "RED" ) var tlpLabelPattern = alternativesUnmarshal( - TLPLabelUnlabeled, - TLPLabelWhite, - TLPLabelGreen, - TLPLabelAmber, - TLPLabelRed, + string(TLPLabelUnlabeled), + string(TLPLabelWhite), + string(TLPLabelGreen), + string(TLPLabelAmber), + string(TLPLabelRed), ) // JSONURL is an URL to JSON document.