{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dream-sports/json-schema/dream-sports-update-check-response-schema.json",
  "title": "UpdateCheckResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dream-sports-acquisition-api-openapi.yml#/components/schemas/UpdateCheckResponse",
  "allOf": [
    {
      "$ref": "#/$defs/PackageInfo"
    },
    {
      "type": "object",
      "required": [
        "isAvailable"
      ],
      "properties": {
        "isAvailable": {
          "type": "boolean",
          "description": "Whether an update is available"
        },
        "downloadURL": {
          "type": "string",
          "format": "uri",
          "description": "URL to download the update"
        },
        "packageSize": {
          "type": "integer",
          "description": "Size of update package in bytes"
        },
        "shouldRunBinaryVersion": {
          "type": "boolean",
          "description": "Whether to revert to binary version"
        },
        "updateAppVersion": {
          "type": "boolean",
          "description": "Whether app version changed"
        },
        "target_binary_range": {
          "type": "string",
          "description": "Target binary version range"
        }
      }
    }
  ],
  "$defs": {
    "PackageInfo": {
      "type": "object",
      "properties": {
        "appVersion": {
          "type": "string",
          "description": "Semver or semver range"
        },
        "description": {
          "type": "string"
        },
        "isDisabled": {
          "type": "boolean",
          "default": false
        },
        "isMandatory": {
          "type": "boolean",
          "default": false,
          "description": "Whether update is mandatory"
        },
        "rollout": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "description": "Percentage of users to receive update"
        },
        "label": {
          "type": "string",
          "description": "Generated release label"
        }
      }
    }
  }
}