{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-post-api-annotations-response201-application-json-schema.json",
  "title": "PostApiAnnotationsResponse201ApplicationJson",
  "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/PostApiAnnotationsResponse201ApplicationJson",
  "type": "object",
  "properties": {
    "annotation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "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
            }
          ]
        },
        "evaluationRunId": {
          "type": "number"
        },
        "testCaseId": {
          "type": "number"
        },
        "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"
              ]
            }
          ]
        },
        "annotatorId": {
          "type": "string"
        },
        "rating": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ]
        },
        "feedback": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "createdAt",
        "metadata",
        "evaluationRunId",
        "testCaseId",
        "labels",
        "annotatorId",
        "rating",
        "feedback"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "annotation"
  ],
  "$defs": {
    "JsonValue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      ]
    }
  }
}