Skip to content

[task] Add required fields array to main_workflow_schema.json #2971

Description

@github-actions

Objective

Add the "required": ["on"] field to the main workflow schema to enforce that all workflows must have a trigger.

Context

This addresses Issue #1 from discussion #2969. Currently, all three schemas (main_workflow_schema.json, included_file_schema.json, mcp_config_schema.json) have zero required fields defined, yet 100% of production workflows (67/67) use the on: field. The schema should reflect this implicit requirement.

Approach

  1. Open pkg/parser/schemas/main_workflow_schema.json
  2. Add a "required" array at the root level with "on" as the first entry
  3. Update the schema description to clarify that on: is mandatory

Files to Modify

  • pkg/parser/schemas/main_workflow_schema.json - Add required fields array

Example Change

{
  "$schema": "(redacted)#",
  "title": "Agentic Workflow",
  "type": "object",
  "required": ["on"],
  "properties": {
    "on": {
      ...
    }
  }
}

Acceptance Criteria

AI generated by Plan Command for discussion #2969

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions