{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Cislunar events export",
  "description": "Event and milestone 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": [
          "id",
          "name",
          "type",
          "date",
          "status",
          "organizer",
          "description",
          "canonicalUrl"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "dateDisplay": {
            "type": "string"
          },
          "dateApproximate": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "organizer": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "relatedMission": {
            "type": "string"
          },
          "canonicalUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}
