{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.com/schemas/seo-aeo-evaluation.schema.json",
  "title": "SEO AEO Evaluation",
  "type": "object",
  "required": ["description", "objective", "checks"],
  "properties": {
    "description": { "type": "string", "minLength": 1 },
    "objective": { "type": "string", "minLength": 1 },
    "checks": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "id",
          "category",
          "status",
          "severity",
          "objective",
          "why",
          "checkMethod",
          "validationCommand",
          "evidenceRequired",
          "passCriteria",
          "warningCriteria",
          "failCriteria",
          "sourceLessons"
        ],
        "properties": {
          "id": { "type": "string", "minLength": 1 },
          "category": { "type": "string", "minLength": 1 },
          "status": { "enum": ["implemented", "planned"] },
          "severity": { "enum": ["critical", "high", "medium", "low"] },
          "objective": { "type": "string", "minLength": 1 },
          "why": { "type": "string", "minLength": 1 },
          "checkMethod": { "type": "string", "minLength": 1 },
          "validationCommand": { "type": "string", "minLength": 1 },
          "evidenceRequired": {
            "type": "array",
            "minItems": 1,
            "items": { "type": "string", "minLength": 1 }
          },
          "passCriteria": {
            "type": "array",
            "minItems": 1,
            "items": { "type": "string", "minLength": 1 }
          },
          "warningCriteria": {
            "type": "array",
            "minItems": 1,
            "items": { "type": "string", "minLength": 1 }
          },
          "failCriteria": {
            "type": "array",
            "minItems": 1,
            "items": { "type": "string", "minLength": 1 }
          },
          "sourceLessons": {
            "type": "array",
            "minItems": 1,
            "items": { "type": "string", "minLength": 1 }
          }
        }
      }
    }
  }
}
