{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roboparts-cc/json-schema/roboparts-cc-deployment-fingerprint-schema.json",
  "title": "DeploymentFingerprint",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/roboparts-cc-api-openapi.yml#/components/schemas/DeploymentFingerprint",
  "type": "object",
  "required": [
    "commitShort",
    "builtAt",
    "nodeVersion"
  ],
  "properties": {
    "commit": {
      "type": [
        "string",
        "null"
      ],
      "description": "完整 SHA（可能为 null 表示未知）"
    },
    "commitShort": {
      "type": "string",
      "pattern": "^[0-9a-f]{10,40}$",
      "description": "commit 短哈希（10-40 位）"
    },
    "branch": {
      "type": [
        "string",
        "null"
      ],
      "description": "分支名（如 main）"
    },
    "deploymentId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Cloudflare 部署 ID"
    },
    "builtAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "构建时间（ISO 8601 UTC）"
    },
    "nodeVersion": {
      "type": "string",
      "pattern": "^\\\\d+\\\\.\\\\d+\\\\.\\\\d+",
      "description": "Node.js 版本"
    },
    "pythonVersion": {
      "type": [
        "string",
        "null"
      ]
    },
    "cloudflarePlatform": {
      "type": "boolean",
      "description": "是否运行在 Cloudflare Pages 上"
    },
    "fallbackSource": {
      "type": [
        "string",
        "null"
      ],
      "description": "数据来源（env 注入 / 静态文件 / unknown 兜底）"
    }
  }
}