From 403b616a5a9609a4e9601a2c574c1e0e8572b6af Mon Sep 17 00:00:00 2001 From: Wang Yan Date: Mon, 7 Aug 2023 11:08:25 +0800 Subject: [PATCH] fix ScheduleObj.type in swagger (#19109) fixes #18262 Add Schedule as a valid enum values of ScheduleObj.type Signed-off-by: wang yan --- api/v2.0/swagger.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/v2.0/swagger.yaml b/api/v2.0/swagger.yaml index fa7dbc354..0e4a6d503 100644 --- a/api/v2.0/swagger.yaml +++ b/api/v2.0/swagger.yaml @@ -7965,8 +7965,9 @@ definitions: type: type: string description: | - The schedule type. The valid values are 'Hourly', 'Daily', 'Weekly', 'Custom', 'Manual' and 'None'. - 'Manual' means to trigger it right away and 'None' means to cancel the schedule. + The schedule type. The valid values are 'Hourly', 'Daily', 'Weekly', 'Custom', 'Manual', 'None' and 'Schedule'. + 'Manual' means to trigger it right away, 'Schedule' means to trigger it by a specified cron schedule and + 'None' means to cancel the schedule. enum: - Hourly - Daily @@ -7974,6 +7975,7 @@ definitions: - Custom - Manual - None + - Schedule cron: type: string description: A cron expression, a time-based job scheduler.