Skip to content

Commit

Permalink
update-swagger-for-job-pipeline-enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Pespiri committed Nov 30, 2023
1 parent 463adea commit 71670e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/jobs/models/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ type Job struct {
// Name of the pipeline
//
// required: false
// Enum: build-deploy
// Enum: build,build-deploy,promote,deploy
// example: build-deploy
Pipeline string `json:"pipeline"`

Expand Down
2 changes: 1 addition & 1 deletion api/jobs/models/job_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type JobSummary struct {
// Name of the pipeline
//
// required: false
// Enum: build-deploy, build
// Enum: build,build-deploy,promote,deploy
// example: build-deploy
Pipeline string `json:"pipeline"`

Expand Down
9 changes: 7 additions & 2 deletions swaggerui_src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6109,7 +6109,10 @@
"description": "Name of the pipeline",
"type": "string",
"enum": [
"build-deploy"
"build",
"build-deploy",
"promote",
"deploy"
],
"x-go-name": "Pipeline",
"example": "build-deploy"
Expand Down Expand Up @@ -6246,8 +6249,10 @@
"description": "Name of the pipeline",
"type": "string",
"enum": [
"build",
"build-deploy",
" build"
"promote",
"deploy"
],
"x-go-name": "Pipeline",
"example": "build-deploy"
Expand Down

0 comments on commit 71670e2

Please sign in to comment.