{
  "$id": "https://redlightindex.com/schema/sources.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "items": {
    "additionalProperties": false,
    "properties": {
      "archive_status": {
        "enum": [
          "saved",
          "pending",
          "unavailable"
        ],
        "type": "string"
      },
      "notes": {
        "type": "string"
      },
      "published_at": {
        "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
      },
      "publisher": {
        "type": "string"
      },
      "retrieved_at": {
        "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
      },
      "source_archive_url": {
        "pattern": "^$|^https://.*$",
        "type": "string"
      },
      "source_id": {
        "type": "string"
      },
      "source_type": {
        "type": "string"
      },
      "source_url": {
        "pattern": "^$|^https://.*$",
        "type": "string"
      },
      "title": {
        "type": "string"
      }
    },
    "required": [
      "source_id",
      "source_url",
      "source_archive_url",
      "archive_status",
      "source_type",
      "publisher",
      "title",
      "published_at",
      "retrieved_at",
      "notes"
    ],
    "type": "object"
  },
  "title": "Red Light Index sources rows",
  "type": "array"
}
