{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "version": {
      "type": "string",
      "const": "v1"
    },
    "generated": {
      "type": "string"
    },
    "licence": {
      "type": "string",
      "const": "CC BY 4.0"
    },
    "licence_url": {
      "type": "string",
      "const": "https://creativecommons.org/licenses/by/4.0/"
    },
    "cite_as": {
      "type": "string",
      "const": "Scamstats (Armidale), scamstats.org"
    },
    "page_url": {
      "type": "string"
    },
    "changes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "added": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "changed": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "iso2": {
                  "type": "string"
                },
                "fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "iso2",
                "fields"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "date",
          "added",
          "changed"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "version",
    "generated",
    "licence",
    "licence_url",
    "cite_as",
    "page_url",
    "changes"
  ],
  "additionalProperties": false
}
