diff --git a/api/notificationservice/notificationservice_docs.go b/api/notificationservice/notificationservice_docs.go index a6aab20..c0b3f38 100644 --- a/api/notificationservice/notificationservice_docs.go +++ b/api/notificationservice/notificationservice_docs.go @@ -330,8 +330,7 @@ const docTemplatenotificationservice = `{ "enum": [ "info", "warning", - "error", - "critical" + "error" ] }, "origin": { diff --git a/api/notificationservice/notificationservice_swagger.json b/api/notificationservice/notificationservice_swagger.json index a27f89b..12626ea 100644 --- a/api/notificationservice/notificationservice_swagger.json +++ b/api/notificationservice/notificationservice_swagger.json @@ -323,8 +323,7 @@ "enum": [ "info", "warning", - "error", - "critical" + "error" ] }, "origin": { diff --git a/api/notificationservice/notificationservice_swagger.yaml b/api/notificationservice/notificationservice_swagger.yaml index b80fa33..06b7f43 100644 --- a/api/notificationservice/notificationservice_swagger.yaml +++ b/api/notificationservice/notificationservice_swagger.yaml @@ -135,7 +135,6 @@ definitions: - info - warning - error - - critical type: string origin: type: string diff --git a/pkg/models/notification.go b/pkg/models/notification.go index 558112f..5472f48 100644 --- a/pkg/models/notification.go +++ b/pkg/models/notification.go @@ -11,6 +11,6 @@ type Notification struct { Timestamp string `json:"timestamp" binding:"required" format:"date-time"` Title string `json:"title" binding:"required"` // can also be seen as the 'type' Detail string `json:"detail" binding:"required"` - Level string `json:"level" binding:"required" enums:"info,warning,error,critical"` + Level string `json:"level" binding:"required" enums:"info,warning,error"` CustomFields map[string]any `json:"customFields,omitempty"` // can contain arbitrary structured information about the notification }