Skip to content

Commit

Permalink
fix(swagger): remove old model annotations (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3r authored Jul 26, 2024
1 parent e61aced commit 75a4808
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 2 additions & 0 deletions library/build_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion library/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion library/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion library/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion library/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion library/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 75a4808

Please sign in to comment.