{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/theholisticcare/json-schema/theholisticcare-game-detail-response-schema.json",
  "title": "GameDetailResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/theholisticcare-mindfulness-games-api-openapi.yml#/components/schemas/GameDetailResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/Game"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Game": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The stable public game ID (same value as `api_id`), in the form \"MG-*\". Never the raw Sanity `_id`."
        },
        "slug": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "mindfulness_game"
          ]
        },
        "api_id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "tag": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "free": {
          "type": "boolean"
        },
        "keywords": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "audiences": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "age_min": {
          "type": [
            "integer",
            "null"
          ]
        },
        "age_max": {
          "type": [
            "integer",
            "null"
          ]
        },
        "duration_minutes": {
          "type": [
            "integer",
            "null"
          ]
        },
        "skills": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Meta": {
      "type": "object",
      "description": "Present on every successful response.",
      "properties": {
        "generated_at": {
          "type": "string",
          "format": "date-time"
        },
        "provider": {
          "type": "string"
        },
        "source": {
          "type": "string"
        }
      }
    }
  }
}