{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.umggaming.com/schemas/reviews.schema.json",
  "title": "UMG Gaming Open iGaming Dataset — reviews export",
  "description": "Every published player review on UMG Gaming, unedited. Data © UMG Gaming contributors, CC BY-SA 4.0.",
  "type": "object",
  "required": ["dataset", "generated_at", "license", "attribution", "schema_version", "count", "data"],
  "properties": {
    "dataset": { "type": "string", "const": "umggaming-reviews" },
    "generated_at": { "type": "string", "format": "date-time" },
    "source": { "type": "string", "format": "uri" },
    "license": { "type": "string", "const": "CC BY-SA 4.0" },
    "license_url": { "type": "string", "format": "uri" },
    "attribution": { "type": "string" },
    "schema_version": { "type": "string" },
    "schema": { "type": "string", "format": "uri" },
    "count": { "type": "integer", "minimum": 0 },
    "data": { "type": "array", "items": { "$ref": "#/$defs/review" } }
  },
  "$defs": {
    "review": {
      "type": "object",
      "required": ["id", "site_slug", "site_name", "author", "verified", "content", "created_at"],
      "properties": {
        "id": { "type": "string", "format": "uuid", "description": "Stable review identifier" },
        "site_slug": { "type": "string", "description": "Slug of the reviewed site: umggaming.com/site/{site_slug}" },
        "site_name": { "type": "string" },
        "author": { "type": "string", "description": "Reviewer display name" },
        "rating": { "type": ["number", "null"], "minimum": 1, "maximum": 5 },
        "verified": { "type": "boolean", "description": "true when the reviewer proved a real account with the operator; verified reviews weigh five times in site ratings" },
        "content": { "type": "string", "description": "The review text, unedited" },
        "created_at": { "type": "string", "format": "date-time" },
        "updated_at": { "type": ["string", "null"], "format": "date-time" }
      }
    }
  }
}
