{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yappy-biz/json-schema/yappy-biz-compatibility-schema.json",
  "title": "Compatibility",
  "description": "Whether a described machine can run Yappy, and why.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yappy-biz-openapi.json#/components/schemas/Compatibility",
  "type": "object",
  "required": [
    "object",
    "compatible",
    "reasons",
    "minimum"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "compatibility",
      "description": "Type discriminator."
    },
    "compatible": {
      "type": "boolean",
      "description": "The verdict."
    },
    "reasons": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Why, in words you can pass to a user."
    },
    "checked": {
      "type": "object",
      "description": "What was evaluated.",
      "properties": {
        "os_version": {
          "type": "string",
          "description": "The version supplied."
        },
        "arch": {
          "type": "string",
          "description": "The architecture supplied."
        }
      }
    },
    "minimum": {
      "type": "object",
      "description": "The floor the verdict was measured against.",
      "properties": {
        "os_version": {
          "type": "string",
          "description": "Lowest supported macOS version."
        },
        "arch": {
          "type": "string",
          "description": "Required architecture."
        }
      }
    }
  }
}