{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/socialcasinoindex-com/json-schema/socialcasinoindex-com-toplist-schema.json",
  "title": "Toplist",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/socialcasinoindex-com-api-openapi.json#/components/schemas/Toplist",
  "type": "object",
  "required": [
    "name",
    "landingPage",
    "casinos",
    "states"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "publisher": {
      "type": "object"
    },
    "description": {
      "type": "string"
    },
    "landingPage": {
      "type": "string",
      "format": "uri"
    },
    "methodology": {
      "type": "string",
      "format": "uri"
    },
    "listingVersion": {
      "type": "string"
    },
    "order": {
      "type": "string"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "lastCheckedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "disclosure": {
      "type": "string"
    },
    "responsibleGambling": {
      "type": "string"
    },
    "offerBlockedStates": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "casinos": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Casino"
      }
    },
    "states": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/State"
      }
    }
  },
  "$defs": {
    "Casino": {
      "type": "object",
      "required": [
        "position",
        "name",
        "slug",
        "profileUrl"
      ],
      "properties": {
        "position": {
          "type": "integer",
          "minimum": 1
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "profileUrl": {
          "type": "string",
          "format": "uri"
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "signupBonus": {
          "$ref": "#/$defs/Fact"
        },
        "firstPurchaseOffer": {
          "$ref": "#/$defs/Fact"
        },
        "dailyReward": {
          "$ref": "#/$defs/Fact"
        },
        "payoutTime": {
          "$ref": "#/$defs/Fact"
        },
        "redemptionMinimums": {
          "type": "object",
          "properties": {
            "cash": {
              "$ref": "#/$defs/Fact"
            },
            "giftCard": {
              "$ref": "#/$defs/Fact"
            },
            "general": {
              "$ref": "#/$defs/Fact"
            }
          }
        },
        "prizeTypes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lastCheckedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "Fact": {
      "type": [
        "object",
        "null"
      ],
      "description": "A published operator term. Null when the operator does not publish it.",
      "properties": {
        "label": {
          "type": "string",
          "description": "Display value, for example \"2.5 SC free\"."
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        },
        "conditions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "promoCode": {
          "type": "string"
        },
        "priceUsd": {
          "type": "number"
        },
        "stage": {
          "type": "string",
          "description": "Payout timing stage, for example processing."
        },
        "method": {
          "type": "string",
          "description": "Prize method, for example cash or gift_card."
        },
        "sourceUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "observedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "label",
        "sourceUrl",
        "observedAt"
      ]
    },
    "State": {
      "type": "object",
      "required": [
        "code",
        "name",
        "offersBlocked"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "Two-letter code."
        },
        "name": {
          "type": "string"
        },
        "offersBlocked": {
          "type": "boolean",
          "description": "Site offer policy, not legal advice."
        },
        "status": {
          "type": "string"
        },
        "basis": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}