{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-ingest-benchmark-response-schema.json",
  "title": "IngestBenchmarkResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-diagnostics-api-openapi.yml#/components/schemas/IngestBenchmarkResponse",
  "properties": {
    "bench_id": {
      "type": "string",
      "title": "Bench Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "family": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Family"
    },
    "task_count": {
      "type": "integer",
      "title": "Task Count"
    },
    "failed_tasks": {
      "items": {
        "$ref": "#/$defs/BenchmarkTaskWriteFailure"
      },
      "type": "array",
      "title": "Failed Tasks"
    },
    "warnings": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Warnings",
      "description": "Provider resource adjustments made before ingestion."
    }
  },
  "type": "object",
  "required": [
    "bench_id",
    "name",
    "task_count"
  ],
  "$defs": {
    "BenchmarkTaskWriteFailure": {
      "properties": {
        "task_id": {
          "type": "string",
          "title": "Task Id"
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Label"
        },
        "error": {
          "type": "string",
          "title": "Error"
        }
      },
      "type": "object",
      "required": [
        "task_id",
        "error"
      ],
      "title": "BenchmarkTaskWriteFailure",
      "description": "A task that did not land; its siblings did, so the bench is short exactly these."
    }
  }
}