Skip to content

Commit e36804c

Browse files
committed
fix unrelated swagger query type
1 parent 5dcf9c1 commit e36804c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

routers/api/v1/notify/repo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func ListRepoNotifications(ctx *context.APIContext) {
6565
// - name: all
6666
// in: query
6767
// description: If true, show notifications marked as read. Default value is false
68-
// type: string
68+
// type: boolean
6969
// - name: status-types
7070
// in: query
7171
// description: "Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned"

routers/api/v1/notify/user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func ListNotifications(ctx *context.APIContext) {
2727
// - name: all
2828
// in: query
2929
// description: If true, show notifications marked as read. Default value is false
30-
// type: string
30+
// type: boolean
3131
// - name: status-types
3232
// in: query
3333
// description: "Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned."

templates/swagger/v1_json.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@
630630
"operationId": "notifyGetList",
631631
"parameters": [
632632
{
633-
"type": "string",
633+
"type": "boolean",
634634
"description": "If true, show notifications marked as read. Default value is false",
635635
"name": "all",
636636
"in": "query"
@@ -6839,7 +6839,7 @@
68396839
"required": true
68406840
},
68416841
{
6842-
"type": "string",
6842+
"type": "boolean",
68436843
"description": "If true, show notifications marked as read. Default value is false",
68446844
"name": "all",
68456845
"in": "query"

0 commit comments

Comments
 (0)