{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-get-api-annotations-response200-application-json-schema.json",
  "title": "GetApiAnnotationsResponse200ApplicationJson",
  "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/GetApiAnnotationsResponse200ApplicationJson",
  "type": "object",
  "properties": {
    "annotations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "users": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "required": [
                  "id",
                  "name",
                  "email"
                ]
              }
            ]
          },
          "test_cases": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "required": [
                  "name"
                ]
              }
            ]
          },
          "annotator": {
            "type": "null"
          },
          "testCase": {
            "type": "null"
          },
          "id": {
            "type": "number"
          },
          "evaluationRunId": {
            "type": "number"
          },
          "testCaseId": {
            "type": "number"
          },
          "annotatorId": {
            "type": "string"
          },
          "rating": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ]
          },
          "feedback": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "labels": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "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"
                      ]
                    }
                  },
                  "calibrationLabel": {
                    "oneOf": [
                      {
                        "type": "string",
                        "enum": [
                          "standard"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "gold"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "adjudication"
                        ]
                      }
                    ]
                  },
                  "taxonomyVersion": {
                    "type": "string"
                  },
                  "failureModes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "legacyLabels": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/$defs/JsonValue"
                    }
                  }
                },
                "additionalProperties": false,
                "required": [
                  "assertionLabels",
                  "taxonomyVersion"
                ]
              }
            ]
          },
          "metadata": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "annotatorExperience": {
                    "type": "string"
                  },
                  "timeSpentMs": {
                    "type": "number"
                  },
                  "labelTaxonomyVersion": {
                    "type": "string"
                  },
                  "reviewerConfidence": {
                    "type": "number"
                  },
                  "adjudicationStatus": {
                    "oneOf": [
                      {
                        "type": "string",
                        "enum": [
                          "pending"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "resolved"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "unreviewed"
                        ]
                      }
                    ]
                  },
                  "evidenceSummary": {
                    "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"
                          ]
                        }
                      ]
                    }
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "required": [
          "users",
          "test_cases",
          "annotator",
          "testCase",
          "id",
          "evaluationRunId",
          "testCaseId",
          "annotatorId",
          "rating",
          "feedback",
          "labels",
          "metadata",
          "createdAt"
        ]
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "annotations"
  ],
  "$defs": {
    "JsonValue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      ]
    }
  }
}