From 4d9a23191249486c1f0e4666622139f2db8e9bf4 Mon Sep 17 00:00:00 2001 From: chesterip Date: Wed, 30 Aug 2023 11:38:46 -0400 Subject: [PATCH] Fix template --- templates/swagger/v1_json.tmpl | 75 +--------------------------------- 1 file changed, 2 insertions(+), 73 deletions(-) diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index eb2298c779..b600a96f22 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -21,7 +21,7 @@ }, "version": "{{AppVer | JSEscape | Safe}}" }, - "basePath": "{{AppSubUrl | JSEscape | Safe}}/api/v1", + "basePath": "/api/v1", "paths": { "/activitypub/user-id/{user-id}": { "get": { @@ -21630,68 +21630,6 @@ }, "x-go-package": "code.gitea.io/gitea/modules/structs" }, - "Task": { - "description": "Task represents a task", - "type": "object", - "properties": { - "id": { - "type": "integer", - "x-go-name": "Id" - }, - "name": { - "type": "string", - "x-go-name": "Name" - }, - "head_branch": { - "type": "string", - "x-go-name": "HeadBranch" - }, - "head_sha": { - "type": "string", - "x-go-name": "HeadSha" - }, - "run_number": { - "type": "integer", - "x-go-name": "RunNumber" - }, - "event": { - "type": "string", - "x-go-name": "Event" - }, - "display_title": { - "type": "string", - "x-go-name": "DisplayTitle" - }, - "status": { - "type": "string", - "x-go-name": "Status" - }, - "workflow_id": { - "type": "string", - "x-go-name": "WorkflowID" - }, - "url": { - "type": "string", - "x-go-name": "Url" - }, - "created_at":{ - "type": "string", - "format": "date-time", - "x-go-name":"CreatedAt" - }, - "updated_at":{ - "type": "string", - "format": "date-time", - "x-go-name":"UpdatedAt" - }, - "run_started_at":{ - "type": "string", - "format": "date-time", - "x-go-name":"RunStartedAt" - } - }, - "x-go-package": "code.gitea.io/gitea/modules/structs" - }, "Tag": { "description": "Tag represents a repository tag", "type": "object", @@ -23240,15 +23178,6 @@ } } }, - "TasksList": { - "description": "TasksList", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Task" - } - } - }, "Tag": { "description": "Tag", "schema": { @@ -23512,4 +23441,4 @@ "TOTPHeader": [] } ] -} +} \ No newline at end of file