Skip to content

Commit

Permalink
remove lastRun and nextRun from taskCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Jan 11, 2023
1 parent edd4baa commit 822e79f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions specs/ingestion/common/schemas/task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ TaskCreate:
destinationID:
type: string
trigger:
$ref: '#/Trigger'
$ref: '#/TriggerInput'
action:
$ref: '#/ActionType'
enabled:
Expand Down Expand Up @@ -72,7 +72,7 @@ TaskUpdate:
destinationID:
type: string
trigger:
$ref: '#/Trigger'
$ref: '#/TriggerInput'
enabled:
type: boolean

Expand All @@ -92,6 +92,17 @@ ActionType:
type: string
enum: ['replace', 'save', 'delete']

TriggerInput:
type: object
additionalProperties: false
properties:
type:
$ref: '#/TriggerType'
cron:
type: string
required:
- type

Trigger:
type: object
additionalProperties: false
Expand Down

0 comments on commit 822e79f

Please sign in to comment.