{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.paymentsrank.com/data/v1/schema.json",
  "title": "PaymentsRank export envelope",
  "type": "object",
  "required": [
    "schema_version"
  ],
  "properties": {
    "schema_version": {
      "const": "1.0"
    },
    "checked_at": {
      "type": "string",
      "format": "date"
    },
    "provider": {
      "type": "object",
      "required": [
        "id",
        "name",
        "sources"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "score": {
          "type": "null"
        },
        "sources": {
          "type": "array"
        }
      }
    },
    "records": {
      "type": "array"
    },
    "providers": {
      "type": "array"
    },
    "sources": {
      "type": "array"
    },
    "routes": {
      "type": "array"
    }
  },
  "additionalProperties": true
}
