type: object
description: The trigger that starts the workflow
required:
  - type
  - attributes
properties:
  type:
    type: string
    enum:
      - EVENT
      - EXTERNAL
      - SCHEDULED
    example: EVENT
    description: The trigger type
  attributes:
    anyOf:
      - $ref: './workflows/trigger-attributes/EventAttributes.yaml'
      - $ref: './workflows/trigger-attributes/ExternalAttributes.yaml'
      - $ref: './workflows/trigger-attributes/ScheduledAttributes.yaml'
    description: Workflow Trigger Attributes.