{
  "openapi": "3.1.0",
  "info": {
    "title": "SWG bar public release manifest",
    "version": "1.0.0",
    "description": "Read the current installer version, URL and SHA-256 checksum. No authentication is needed. This API does not access the Mac app, local detection data, purchases or licenses. Older installers are retired when a new release is published."
  },
  "servers": [{ "url": "https://swgbar.com" }],
  "security": [],
  "paths": {
    "/releases/latest.json": {
      "get": {
        "operationId": "getLatestRelease",
        "summary": "Read the latest public macOS installer manifest",
        "responses": {
          "200": {
            "description": "Current release. The checksum does not replace macOS code-signing or notarization checks.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "version",
                    "downloadURL",
                    "sha256",
                    "buildNumber",
                    "sourceCommit"
                  ],
                  "properties": {
                    "version": { "type": "string" },
                    "downloadURL": { "type": "string", "format": "uri" },
                    "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
                    "buildNumber": { "type": "integer", "minimum": 1 },
                    "sourceCommit": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{40}$"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
