{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yappy-biz/json-schema/yappy-biz-release-schema.json",
  "title": "Release",
  "description": "One published build of the Yappy Mac app.",
  "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/Release",
  "type": "object",
  "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."
    }
  },
  "$defs": {
    "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."
        }
      }
    }
  }
}