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 f35ee3b
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-deploy,build,deploy,promote
// 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-deploy,build,deploy,promote
// 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-deploy",
"build",
"deploy",
"promote"
],
"x-go-name": "Pipeline",
"example": "build-deploy"
Expand Down Expand Up @@ -6247,7 +6250,9 @@
"type": "string",
"enum": [
"build-deploy",
" build"
"build",
"deploy",
"promote"
],
"x-go-name": "Pipeline",
"example": "build-deploy"
Expand Down

0 comments on commit f35ee3b

Please sign in to comment.