{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-post-api-assessments-id-runtime-evidence-request-schema.json",
  "title": "PostApiAssessmentsIdRuntimeEvidenceRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-assessments-api-openapi.yml#/components/schemas/PostApiAssessmentsIdRuntimeEvidenceRequest",
  "type": "object",
  "properties": {
    "reference": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "source": {
              "type": "string",
              "enum": [
                "model_call"
              ]
            },
            "modelCallId": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "required": [
            "source",
            "modelCallId"
          ]
        },
        {
          "type": "object",
          "properties": {
            "source": {
              "type": "string",
              "enum": [
                "orchestration_bridge"
              ]
            },
            "runId": {
              "type": "string"
            },
            "receiptId": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "required": [
            "source",
            "runId",
            "receiptId"
          ]
        },
        {
          "type": "object",
          "properties": {
            "source": {
              "type": "string",
              "enum": [
                "evaluation_run"
              ]
            },
            "evaluationId": {
              "type": "number"
            },
            "runId": {
              "type": "number"
            }
          },
          "additionalProperties": false,
          "required": [
            "source",
            "evaluationId",
            "runId"
          ]
        }
      ]
    },
    "expectedReceiptHash": {
      "type": "string"
    },
    "expectedAssessmentHash": {
      "type": "string"
    },
    "idempotencyKey": {
      "type": "string"
    },
    "rationale": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "required": [
    "reference",
    "expectedReceiptHash",
    "expectedAssessmentHash",
    "idempotencyKey",
    "rationale"
  ]
}