Skip to content

Commit 976c2a0

Browse files
sapkappleboy
authored andcommitted
Fix change introduce by update of go-swagger. (#1727)
1 parent 4e5ee2b commit 976c2a0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

public/swagger.v1.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,15 +969,12 @@
969969
"x-go-name": "OpenIssues"
970970
},
971971
"owner": {
972-
"x-go-name": "Owner",
973972
"$ref": "#/definitions/User"
974973
},
975974
"parent": {
976-
"x-go-name": "Parent",
977-
"$ref": "#/definitions/Repository"
975+
"type": "object"
978976
},
979977
"permissions": {
980-
"x-go-name": "Permissions",
981978
"$ref": "#/definitions/Permission"
982979
},
983980
"private": {

routers/api/v1/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
//go:generate swagger generate spec -o ../../../public/swagger.v1.json
66
//go:generate sed -i "s;\".ref\": \"#/definitions/GPGKey\";\"type\": \"object\";g" ../../../public/swagger.v1.json
7+
//go:generate sed -i "s;^ \".ref\": \"#/definitions/Repository\"; \"type\": \"object\";g" ../../../public/swagger.v1.json
78

89
// Package v1 Gitea API.
910
//

0 commit comments

Comments
 (0)