Plan Require Name

plan-require-name

info experience: data-modelingexperience: governance spec: plans

name should be present

The name property of each plan should be present.

Rule definition

The full Spotlight rule — drop it into a ruleset (.spotlight.yaml / .spectral.yaml) and run it with any Spotlight tool.

plan-require-name:
  title: Plan Require Name
  reference: https://spotlight-rules.com/spec/rules/plans/plan-require-name/
  description: The `name` property of each plan should be present.
  message: name should be present
  severity: info
  given: $.plans[*]
  then:
    field: name
    function: truthy
  tags:
    - format:plans
    - spec:plans
    - experience:data-modeling
    - experience:governance
  prompt: "You are editing a Plans document to satisfy the Spotlight API
    governance rule 'plan-require-name' (Plan Require Name). Requirement: The
    `name` property of each plan should be present. To fix: Ensure `name` is
    present and non-empty at each matching location. This rule is evaluated at
    the JSONPath `$.plans[*]` — inspect every location it matches and correct
    only what violates the rule. Make the smallest change that satisfies the
    rule, leave all unrelated content, key order, comments, and formatting
    unchanged, and keep the document valid Plans. Return only the complete
    corrected document, with no commentary."
AI fix prompt — send this to Claude, Gemini, or ChatGPT with your artifact to auto-fix this rule
You are editing a Plans document to satisfy the Spotlight API governance rule 'plan-require-name' (Plan Require Name). Requirement: The `name` property of each plan should be present. To fix: Ensure `name` is present and non-empty at each matching location. This rule is evaluated at the JSONPath `$.plans[*]` — inspect every location it matches and correct only what violates the rule. Make the smallest change that satisfies the rule, leave all unrelated content, key order, comments, and formatting unchanged, and keep the document valid Plans. Return only the complete corrected document, with no commentary.
ArtifactPlans
Applies at (given)$.plans[*]
Severityinfo — educational by default; raise to warn/error to enforce
Referencehttps://spotlight-rules.com/spec/rules/plans/plan-require-name/