{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-put-api-annotations-tasks-id-items-response200-application-json-schema.json",
  "title": "PutApiAnnotationsTasksIdItemsResponse200ApplicationJson",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-annotations-api-openapi.yml#/components/schemas/PutApiAnnotationsTasksIdItemsResponse200ApplicationJson",
  "type": "object",
  "properties": {
    "item": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "id": {
          "type": "number"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "contentHash": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "content": {
          "type": "string"
        },
        "questionSetVersion": {
          "type": "number"
        },
        "writeRevision": {
          "type": "number"
        },
        "taskId": {
          "type": "number"
        },
        "annotation": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "labels": {
                  "type": "object",
                  "properties": {
                    "taxonomyVersion": {
                      "type": "string"
                    },
                    "assertionLabels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "assertionKey": {
                            "oneOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "safety"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "pii"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "hallucination"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "toxicity"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "instruction_following"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "json_schema"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "readability"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "functional"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "judge"
                                ]
                              }
                            ]
                          },
                          "verdict": {
                            "oneOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "rejected"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "not_applicable"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "confirmed"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "uncertain"
                                ]
                              }
                            ]
                          },
                          "evidence": {
                            "type": "array",
                            "items": {
                              "oneOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "trajectory"
                                  ]
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "input"
                                  ]
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "output"
                                  ]
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "expected_output"
                                  ]
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "messages"
                                  ]
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "tool_calls"
                                  ]
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "assertion_result"
                                  ]
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "human_feedback"
                                  ]
                                }
                              ]
                            }
                          },
                          "severity": {
                            "oneOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "medium"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "high"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "critical"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "low"
                                ]
                              }
                            ]
                          },
                          "notes": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "assertionKey",
                          "verdict",
                          "evidence"
                        ]
                      }
                    },
                    "failureModes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "calibrationLabel": {
                      "oneOf": [
                        {
                          "type": "string",
                          "enum": [
                            "standard"
                          ]
                        },
                        {
                          "type": "string",
                          "enum": [
                            "gold"
                          ]
                        },
                        {
                          "type": "string",
                          "enum": [
                            "adjudication"
                          ]
                        }
                      ]
                    },
                    "legacyLabels": {
                      "type": "object",
                      "additionalProperties": {
                        "$ref": "#/$defs/JsonValue"
                      }
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "taxonomyVersion",
                    "assertionLabels"
                  ]
                },
                "score": {
                  "type": "number"
                },
                "feedback": {
                  "type": "string"
                },
                "answers": {
                  "$ref": "#/$defs/JsonValue"
                },
                "deferred": {
                  "oneOf": [
                    {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  ]
                },
                "deferredBy": {
                  "type": "string"
                },
                "deferredAt": {
                  "type": "string"
                },
                "sourceReported": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/$defs/JsonValue"
                  }
                },
                "actorKind": {
                  "type": "string"
                },
                "actorUserId": {
                  "type": "string"
                },
                "answeredAt": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "annotatedBy": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "annotatedAt": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string",
              "format": "date-time"
            }
          ]
        },
        "subjectKind": {
          "type": "string"
        },
        "subjectRef": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      },
      "additionalProperties": false,
      "required": [
        "status",
        "id",
        "createdAt",
        "contentHash",
        "content",
        "questionSetVersion",
        "writeRevision",
        "taskId",
        "annotation",
        "annotatedBy",
        "annotatedAt",
        "subjectKind",
        "subjectRef"
      ]
    },
    "completed": {
      "type": "boolean"
    },
    "deferred": {
      "type": "boolean"
    },
    "revision": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "number"
        }
      ]
    },
    "writeRevision": {
      "type": "number"
    },
    "pendingOtherReviewers": {
      "type": "boolean"
    },
    "reviewerCount": {
      "type": "number"
    },
    "requiredReviewers": {
      "type": "number"
    }
  },
  "additionalProperties": false,
  "required": [
    "item",
    "completed",
    "deferred",
    "revision",
    "writeRevision",
    "pendingOtherReviewers",
    "reviewerCount",
    "requiredReviewers"
  ],
  "$defs": {
    "JsonValue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      ]
    }
  }
}