From f35ee3bf1a729a678fa081e4707b26166623a09e Mon Sep 17 00:00:00 2001 From: Fredrik Hatletvedt Date: Thu, 30 Nov 2023 14:03:44 +0100 Subject: [PATCH] update-swagger-for-job-pipeline-enum --- api/jobs/models/job.go | 2 +- api/jobs/models/job_summary.go | 2 +- swaggerui_src/swagger.json | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/api/jobs/models/job.go b/api/jobs/models/job.go index 073dc802..5681a926 100644 --- a/api/jobs/models/job.go +++ b/api/jobs/models/job.go @@ -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"` diff --git a/api/jobs/models/job_summary.go b/api/jobs/models/job_summary.go index 788f1866..1750c1d6 100644 --- a/api/jobs/models/job_summary.go +++ b/api/jobs/models/job_summary.go @@ -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"` diff --git a/swaggerui_src/swagger.json b/swaggerui_src/swagger.json index f509fa49..0f365877 100644 --- a/swaggerui_src/swagger.json +++ b/swaggerui_src/swagger.json @@ -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" @@ -6247,7 +6250,9 @@ "type": "string", "enum": [ "build-deploy", - " build" + "build", + "deploy", + "promote" ], "x-go-name": "Pipeline", "example": "build-deploy"