Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(swagger): remove old model annotations #385

Merged
merged 5 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading