{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "short_id": {"type": "string"},
          "has_issues": {"type": "boolean"},
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Unified diagnostic ID — same value as the surrounding short_id (e.g., C01). Consumer 가 권위 source-of-truth 로 사용."
                },
                "scope": {
                  "type": "string",
                  "enum": ["entity"],
                  "description": "Const 'entity'."
                },
                "issue_code": {
                  "type": "string",
                  "enum": [
                    "missing_ethnicity",
                    "proper_noun_translated",
                    "awkward_translation"
                  ]
                },
                "action": {
                  "type": "string",
                  "enum": ["regen_required"],
                  "description": "Const 'regen_required' — v1 단일 값."
                },
                "hint_diagnostic": {
                  "type": "string",
                  "description": "Non-empty natural-language diagnostic — what is wrong + regen direction. NOT a substring replacement target."
                },
                "short_id": {
                  "type": "string",
                  "description": "Debug alias — same value as id (e.g., C01). Schema required. Consumer reads id as authoritative source-of-truth; id, result-level short_id, and this issue-level short_id must all be equal (mismatch raises t2i_review.diagnostic_alias_mismatch)."
                }
              },
              "required": ["id", "scope", "issue_code", "action", "hint_diagnostic", "short_id"],
              "additionalProperties": false
            }
          }
        },
        "required": ["short_id", "has_issues", "issues"],
        "additionalProperties": false
      }
    }
  },
  "required": ["results"],
  "additionalProperties": false
}
