Skip to content

Commit

Permalink
fix(swagger): remove old model annotations
Browse files Browse the repository at this point in the history
the modified model annotations have moved to go-vela/server/api/types
where a duplicate of these annotations can be found. this change is
needed for accurate swagger doc generation. see
go-vela/server#1159
  • Loading branch information
wass3r committed Jul 14, 2024
1 parent e61aced commit dad9174
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions library/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import (
)

// Build is the library representation of a build for a pipeline.
//
// swagger:model Build
type Build struct {
ID *int64 `json:"id,omitempty"`
RepoID *int64 `json:"repo_id,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions library/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
)

// Executor is the library representation of an executor for a worker.
//
// swagger:model Executor
type Executor struct {
ID *int64 `json:"id,omitempty"`
Host *string `json:"host,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions library/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import (
)

// Repo is the library representation of a repo.
//
// swagger:model Repo
type Repo struct {
ID *int64 `json:"id,omitempty"`
UserID *int64 `json:"user_id,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions library/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import (
)

// Schedule is the API representation of a schedule for a repo.
//
// swagger:model Schedule
type Schedule struct {
ID *int64 `json:"id,omitempty"`
RepoID *int64 `json:"repo_id,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions library/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
)

// User is the library representation of a user.
//
// swagger:model User
type User struct {
ID *int64 `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions library/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import (
)

// Worker is the library representation of a worker.
//
// swagger:model Worker
type Worker struct {
ID *int64 `json:"id,omitempty"`
Hostname *string `json:"hostname,omitempty"`
Expand Down

0 comments on commit dad9174

Please sign in to comment.