{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Cislunar comparison playbooks export",
  "description": "Comparison and playbook page export payload.",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "site",
    "dataset",
    "count",
    "records"
  ],
  "properties": {
    "schemaVersion": {
      "type": "integer"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "site": {
      "const": "cislunar.news"
    },
    "dataset": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "slug",
          "title",
          "dek",
          "category",
          "updated",
          "summary",
          "cards",
          "criteria",
          "canonicalUrl"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "dek": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "updated": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "methodology": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sourceNotes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cards": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "criteria": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "playbook": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "internalLinks": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "glossaryTerms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "relatedArticleIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "canonicalUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}
