Skip to content

Commit e72b3c1

Browse files
committed
refactor: update cli-config.schema
1 parent a2cef65 commit e72b3c1

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

resources/schemas/cli.config.schema.yaml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,21 @@
246246
directory: false
247247
directories: false
248248
schedule:
249-
type: object
250-
properties:
251-
interval: { enum: [cron, daily, weekly, monthly, quarterly, semiannually, yearly] }
252-
cronjob: { type: string, format: cron }
253-
day: { type: string, format: weekday }
254-
time: { type: string, format: time }
255-
timezone: { type: string, format: timezone }
256-
additionalProperties: false
257-
required: [interval]
249+
anyOf:
250+
- type: object
251+
properties:
252+
interval: { const: cron }
253+
cronjob: { type: string, format: cron }
254+
timezone: { type: string, format: timezone }
255+
additionalProperties: false
256+
required: [interval, cronjob]
257+
- type: object
258+
properties:
259+
interval: { enum: [daily, weekly, monthly, quarterly, semiannually, yearly] }
260+
day: { type: string, format: weekday }
261+
time: { type: string, format: time }
262+
timezone: { type: string, format: timezone }
263+
additionalProperties: false
264+
required: [interval]
258265
open-pull-requests-limit: { type: integer, minimum: 0 }
259266
required: [schedule]

0 commit comments

Comments
 (0)