{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roboparts-cc/json-schema/roboparts-cc-compatibility-verdict-schema.json",
  "title": "CompatibilityVerdict",
  "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/CompatibilityVerdict",
  "type": "object",
  "required": [
    "success",
    "a",
    "b",
    "verdict"
  ],
  "properties": {
    "success": {
      "type": "boolean"
    },
    "a": {
      "type": "object",
      "description": "实体 A（含 id/name/resolved_from 等）",
      "additionalProperties": true
    },
    "b": {
      "type": "object",
      "additionalProperties": true
    },
    "verdict": {
      "type": "string",
      "enum": [
        "compatible",
        "incompatible",
        "unknown",
        "partial"
      ],
      "description": "三态 + partial（部分维度兼容）"
    },
    "dimensions": {
      "type": "object",
      "description": "四维裁决明细",
      "additionalProperties": true
    },
    "reasons": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "hint": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}