Skip to content

Commit

Permalink
remove from model and update api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
llugin committed Dec 12, 2024
1 parent ba3658f commit 60a53c0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions api/notificationservice/notificationservice_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ const docTemplatenotificationservice = `{
"enum": [
"info",
"warning",
"error",
"critical"
"error"
]
},
"origin": {
Expand Down
3 changes: 1 addition & 2 deletions api/notificationservice/notificationservice_swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,7 @@
"enum": [
"info",
"warning",
"error",
"critical"
"error"
]
},
"origin": {
Expand Down
1 change: 0 additions & 1 deletion api/notificationservice/notificationservice_swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ definitions:
- info
- warning
- error
- critical
type: string
origin:
type: string
Expand Down
2 changes: 1 addition & 1 deletion pkg/models/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 60a53c0

Please sign in to comment.