{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thegamesdb/json-schema/thegamesdb-platforms-schema.json",
  "title": "Platforms",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thegamesdb-platforms-api-openapi.yml#/components/schemas/Platforms",
  "allOf": [
    {
      "$ref": "#/$defs/BaseApiResponse"
    },
    {
      "type": "object",
      "required": [
        "data"
      ],
      "properties": {
        "data": {
          "type": "object",
          "required": [
            "count",
            "platforms"
          ],
          "properties": {
            "count": {
              "type": "integer",
              "minimum": 0
            },
            "platforms": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/$defs/Platform"
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "BaseApiResponse": {
      "type": "object",
      "required": [
        "code",
        "status",
        "remaining_monthly_allowance",
        "extra_allowance"
      ],
      "properties": {
        "code": {
          "type": "integer",
          "minimum": 0
        },
        "status": {
          "type": "string"
        },
        "remaining_monthly_allowance": {
          "type": "integer",
          "minimum": 0
        },
        "extra_allowance": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "Platform": {
      "type": "object",
      "required": [
        "id",
        "name",
        "alias",
        "icon",
        "console",
        "controller",
        "developer"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "minimum": 0
        },
        "name": {
          "type": "string"
        },
        "alias": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "console": {
          "type": "string"
        },
        "controller": {
          "type": "string"
        },
        "developer": {
          "type": "string"
        },
        "overview": {
          "type": "string"
        }
      }
    }
  }
}