From 976c2a05fafcecc454634206f9072f3ae23bc055 Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Fri, 2 Jun 2017 06:35:31 +0200 Subject: [PATCH] Fix change introduce by update of go-swagger. (#1727) --- public/swagger.v1.json | 5 +---- routers/api/v1/api.go | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/public/swagger.v1.json b/public/swagger.v1.json index dd91a6fdc19..62c9fd3c480 100644 --- a/public/swagger.v1.json +++ b/public/swagger.v1.json @@ -969,15 +969,12 @@ "x-go-name": "OpenIssues" }, "owner": { - "x-go-name": "Owner", "$ref": "#/definitions/User" }, "parent": { - "x-go-name": "Parent", - "$ref": "#/definitions/Repository" + "type": "object" }, "permissions": { - "x-go-name": "Permissions", "$ref": "#/definitions/Permission" }, "private": { diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 5dd06c37fbb..9ff71ed2f20 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -4,6 +4,7 @@ //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/Repository\"; \"type\": \"object\";g" ../../../public/swagger.v1.json // Package v1 Gitea API. //