{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vaheroesph-com/json-schema/vaheroesph-com-hero-path-schema.json",
  "title": "HeroPath",
  "description": "A VA Heroes PH career or training path (a program) exactly as published on the website.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vaheroesph-com-openapi.json#/components/schemas/HeroPath",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9-]{1,64}$",
      "minLength": 1,
      "maxLength": 64,
      "description": "URL slug identifying the path."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "Display name."
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "Short badge label, null when the path has none."
    },
    "tagline": {
      "type": "string",
      "description": "One-line summary shown on the path card."
    },
    "description": {
      "type": "string",
      "description": "Short description used in listings."
    },
    "intro": {
      "type": "string",
      "description": "Longer introduction shown on the path page."
    },
    "highlights": {
      "type": "array",
      "description": "Key learning or role highlights.",
      "items": {
        "type": "string"
      }
    },
    "type": {
      "type": "string",
      "enum": [
        "training",
        "sales"
      ],
      "description": "\"training\" for VA training paths, \"sales\" for the Loan Officer career path."
    },
    "featured": {
      "type": "boolean",
      "description": "True for the highlighted starter path."
    },
    "externalUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "External program website, null when none exists."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Canonical page URL on this website."
    }
  },
  "required": [
    "slug",
    "name",
    "label",
    "tagline",
    "description",
    "intro",
    "highlights",
    "type",
    "featured",
    "externalUrl",
    "url"
  ],
  "additionalProperties": false
}