{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TightBeatz curated collections",
  "type": "object",
  "required": [
    "archive",
    "release",
    "releaseId",
    "generated",
    "generatedAt",
    "schemaVersion",
    "canonicalRecordCount",
    "catalogContentHash",
    "count",
    "collections"
  ],
  "properties": {
    "archive": {
      "const": "The TightBeatz Archive"
    },
    "release": {
      "type": "string"
    },
    "releaseId": {
      "type": "string"
    },
    "generated": {
      "type": "string"
    },
    "generatedAt": {
      "type": "string"
    },
    "schemaVersion": {
      "type": "string"
    },
    "canonicalRecordCount": {
      "type": "integer"
    },
    "catalogContentHash": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "collections": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "title",
          "description",
          "curatorialNote",
          "criteria",
          "count",
          "recordIds",
          "records",
          "url",
          "jsonUrl"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "curatorialNote": {
            "type": "string"
          },
          "criteria": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "count": {
            "type": "integer"
          },
          "recordIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "records": {
            "type": "array"
          },
          "url": {
            "type": "string"
          },
          "jsonUrl": {
            "type": "string"
          }
        }
      }
    }
  }
}
