1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Fix change introduce by update of go-swagger. (#1727)

This commit is contained in:
Antoine GIRARD 2017-06-02 06:35:31 +02:00 committed by Bo-Yi Wu
parent 4e5ee2b67a
commit 976c2a05fa
2 changed files with 2 additions and 4 deletions

View file

@ -969,15 +969,12 @@
"x-go-name": "OpenIssues" "x-go-name": "OpenIssues"
}, },
"owner": { "owner": {
"x-go-name": "Owner",
"$ref": "#/definitions/User" "$ref": "#/definitions/User"
}, },
"parent": { "parent": {
"x-go-name": "Parent", "type": "object"
"$ref": "#/definitions/Repository"
}, },
"permissions": { "permissions": {
"x-go-name": "Permissions",
"$ref": "#/definitions/Permission" "$ref": "#/definitions/Permission"
}, },
"private": { "private": {

View file

@ -4,6 +4,7 @@
//go:generate swagger generate spec -o ../../../public/swagger.v1.json //go:generate swagger generate spec -o ../../../public/swagger.v1.json
//go:generate sed -i "s;\".ref\": \"#/definitions/GPGKey\";\"type\": \"object\";g" ../../../public/swagger.v1.json //go:generate sed -i "s;\".ref\": \"#/definitions/GPGKey\";\"type\": \"object\";g" ../../../public/swagger.v1.json
//go:generate sed -i "s;^ \".ref\": \"#/definitions/Repository\"; \"type\": \"object\";g" ../../../public/swagger.v1.json
// Package v1 Gitea API. // Package v1 Gitea API.
// //