{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://mcservers.au/api/schema.json",
 "title": "MCServers.au server",
 "type": "object",
 "required": [
  "slug",
  "name",
  "address",
  "edition",
  "version",
  "modes",
  "tags",
  "region",
  "country",
  "online",
  "players",
  "max_players",
  "uptime_24h_pct",
  "uptime_7d_pct",
  "peak_players_7d",
  "last_checked",
  "listed_since",
  "website",
  "discord",
  "page_url",
  "api_url"
 ],
 "properties": {
  "slug": {
   "type": "string"
  },
  "name": {
   "type": "string"
  },
  "address": {
   "type": "string",
   "description": "Join address (host or host:port)"
  },
  "edition": {
   "type": "string"
  },
  "version": {
   "type": [
    "string",
    "null"
   ]
  },
  "modes": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Game modes shown on the site"
  },
  "tags": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "region": {
   "type": "string",
   "description": "Hosting location as listed (state, city or New Zealand)"
  },
  "country": {
   "type": "string",
   "enum": [
    "AU",
    "NZ"
   ]
  },
  "online": {
   "type": "boolean"
  },
  "players": {
   "type": "integer"
  },
  "max_players": {
   "type": [
    "integer",
    "null"
   ]
  },
  "uptime_24h_pct": {
   "type": [
    "number",
    "null"
   ]
  },
  "uptime_7d_pct": {
   "type": [
    "number",
    "null"
   ]
  },
  "peak_players_7d": {
   "type": [
    "integer",
    "null"
   ]
  },
  "last_checked": {
   "type": [
    "string",
    "null"
   ],
   "format": "date-time"
  },
  "listed_since": {
   "type": [
    "string",
    "null"
   ]
  },
  "website": {
   "type": [
    "string",
    "null"
   ]
  },
  "discord": {
   "type": [
    "string",
    "null"
   ]
  },
  "page_url": {
   "type": "string",
   "format": "uri"
  },
  "api_url": {
   "type": "string",
   "format": "uri"
  }
 }
}