| @@ -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", | |||||
| "$ref": "#/definitions/Repository" | |||||
| "type": "object" | |||||
| }, | }, | ||||
| "permissions": { | "permissions": { | ||||
| "x-go-name": "Permissions", | |||||
| "$ref": "#/definitions/Permission" | "$ref": "#/definitions/Permission" | ||||
| }, | }, | ||||
| "private": { | "private": { | ||||
| @@ -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. | ||||
| // | // | ||||