{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roark/json-schema/roark-benchmark-generation-schema.json",
  "title": "BenchmarkGeneration",
  "description": "One published sweep of a target, current or superseded — an entry in its history",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roark-benchmark-api-openapi.yml#/components/schemas/BenchmarkGeneration",
  "type": "object",
  "properties": {
    "publicationId": {
      "type": "string",
      "format": "uuid"
    },
    "suite": {
      "type": "string"
    },
    "suiteVersion": {
      "type": "string"
    },
    "targetKey": {
      "type": "string"
    },
    "targetName": {
      "type": "string"
    },
    "iterations": {
      "type": "integer"
    },
    "sampleCallCount": {
      "type": "integer"
    },
    "publishedAt": {
      "type": "string"
    },
    "supersededAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "When a later sweep replaced this generation. Null means it is the current one."
    },
    "isCurrent": {
      "type": "boolean",
      "description": "Whether this is the generation the other endpoints return."
    }
  },
  "required": [
    "publicationId",
    "suite",
    "suiteVersion",
    "targetKey",
    "targetName",
    "iterations",
    "sampleCallCount",
    "publishedAt",
    "supersededAt",
    "isCurrent"
  ]
}