From 75a480864eca3de766d2a666db0938bd9d02a2e8 Mon Sep 17 00:00:00 2001 From: david may <1301201+wass3r@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:12:55 +0000 Subject: [PATCH] fix(swagger): remove old model annotations (#385) --- library/build.go | 2 +- library/build_queue.go | 2 ++ library/executor.go | 2 +- library/repo.go | 2 +- library/schedule.go | 2 +- library/user.go | 2 +- library/worker.go | 2 +- 7 files changed, 8 insertions(+), 6 deletions(-) diff --git a/library/build.go b/library/build.go index 2ca9c368..f8f5d4d5 100644 --- a/library/build.go +++ b/library/build.go @@ -13,7 +13,7 @@ import ( // Build is the library representation of a build for a pipeline. // -// swagger:model Build +// Deprecated: use Build from github.com/go-vela/server/api/types instead. type Build struct { ID *int64 `json:"id,omitempty"` RepoID *int64 `json:"repo_id,omitempty"` diff --git a/library/build_queue.go b/library/build_queue.go index 64ab0587..21cf3a20 100644 --- a/library/build_queue.go +++ b/library/build_queue.go @@ -7,6 +7,8 @@ import "fmt" // BuildQueue is the library representation of the builds in the queue. // +// Deprecated: use QueueBuild from github.com/go-vela/server/api/types instead. +// // swagger:model BuildQueue type BuildQueue struct { Status *string `json:"status,omitempty"` diff --git a/library/executor.go b/library/executor.go index 62200230..1ae78135 100644 --- a/library/executor.go +++ b/library/executor.go @@ -11,7 +11,7 @@ import ( // Executor is the library representation of an executor for a worker. // -// swagger:model Executor +// Deprecated: use Executor from github.com/go-vela/server/api/types instead. type Executor struct { ID *int64 `json:"id,omitempty"` Host *string `json:"host,omitempty"` diff --git a/library/repo.go b/library/repo.go index 46c87df7..eb4c801d 100644 --- a/library/repo.go +++ b/library/repo.go @@ -9,7 +9,7 @@ import ( // Repo is the library representation of a repo. // -// swagger:model Repo +// Deprecated: use Repo from github.com/go-vela/server/api/types instead. type Repo struct { ID *int64 `json:"id,omitempty"` UserID *int64 `json:"user_id,omitempty"` diff --git a/library/schedule.go b/library/schedule.go index b9511e98..6b5437f3 100644 --- a/library/schedule.go +++ b/library/schedule.go @@ -8,7 +8,7 @@ import ( // Schedule is the API representation of a schedule for a repo. // -// swagger:model Schedule +// Deprecated: use Schedule from github.com/go-vela/server/api/types instead. type Schedule struct { ID *int64 `json:"id,omitempty"` RepoID *int64 `json:"repo_id,omitempty"` diff --git a/library/user.go b/library/user.go index 3e2deb8e..4d95583e 100644 --- a/library/user.go +++ b/library/user.go @@ -10,7 +10,7 @@ import ( // User is the library representation of a user. // -// swagger:model User +// Deprecated: use User from github.com/go-vela/server/api/types instead. type User struct { ID *int64 `json:"id,omitempty"` Name *string `json:"name,omitempty"` diff --git a/library/worker.go b/library/worker.go index a454190a..adf89045 100644 --- a/library/worker.go +++ b/library/worker.go @@ -8,7 +8,7 @@ import ( // Worker is the library representation of a worker. // -// swagger:model Worker +// Deprecated: use Worker from github.com/go-vela/server/api/types instead. type Worker struct { ID *int64 `json:"id,omitempty"` Hostname *string `json:"hostname,omitempty"`