{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yappy-biz/json-schema/yappy-biz-release-list-schema.json",
  "title": "ReleaseList",
  "description": "A cursor-paginated page of release entries.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yappy-biz-releases-api-openapi.yml#/components/schemas/ReleaseList",
  "type": "object",
  "required": [
    "object",
    "data",
    "pagination"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "list",
      "description": "Type discriminator."
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Release"
      },
      "description": "This page of items."
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    },
    "total": {
      "type": "integer",
      "description": "How many items exist in total."
    }
  },
  "$defs": {
    "Pagination": {
      "type": "object",
      "title": "Pagination",
      "description": "Cursor pagination. When has_more is false, next_cursor is null.",
      "required": [
        "limit",
        "has_more",
        "next_cursor"
      ],
      "properties": {
        "limit": {
          "type": "integer",
          "description": "How many items this page holds at most."
        },
        "has_more": {
          "type": "boolean",
          "description": "Whether another page exists."
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor for the next page, or null."
        },
        "next_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Fully-formed URL for the next page, or null."
        }
      }
    },
    "Platform": {
      "type": "object",
      "title": "Platform",
      "description": "The floor a release requires.",
      "required": [
        "os",
        "min_version",
        "arch"
      ],
      "properties": {
        "os": {
          "type": "string",
          "description": "Operating system name."
        },
        "min_version": {
          "type": "string",
          "description": "Lowest supported OS version."
        },
        "arch": {
          "type": "string",
          "enum": [
            "arm64"
          ],
          "description": "Required CPU architecture."
        }
      }
    },
    "Release": {
      "type": "object",
      "title": "Release",
      "description": "One published build of the Yappy Mac app.",
      "required": [
        "object",
        "version",
        "published_at",
        "notes",
        "download_url",
        "platform"
      ],
      "properties": {
        "object": {
          "type": "string",
          "const": "release",
          "description": "Type discriminator."
        },
        "version": {
          "type": "string",
          "description": "Semantic version."
        },
        "published_at": {
          "type": "string",
          "format": "date",
          "description": "Publication date."
        },
        "notes": {
          "type": "string",
          "description": "What changed, in prose."
        },
        "download_url": {
          "type": "string",
          "format": "uri",
          "description": "Direct download for this build."
        },
        "platform": {
          "$ref": "#/$defs/Platform"
        },
        "is_latest": {
          "type": "boolean",
          "description": "Whether this is the current release."
        },
        "sandbox": {
          "type": "boolean",
          "description": "Present and true on sandbox fixtures."
        }
      }
    }
  }
}