{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-cancel-experiment-response-schema.json",
  "title": "CancelExperimentResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-krun-api-openapi.yml#/components/schemas/CancelExperimentResponse",
  "properties": {
    "success": {
      "type": "boolean",
      "title": "Success"
    },
    "message": {
      "type": "string",
      "title": "Message"
    },
    "xid": {
      "type": "string",
      "title": "Xid"
    },
    "killed": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Killed"
    },
    "errors": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/CancelJobError"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Errors"
    }
  },
  "type": "object",
  "required": [
    "success",
    "message",
    "xid",
    "killed"
  ],
  "$defs": {
    "CancelJobError": {
      "properties": {
        "job": {
          "type": "string",
          "title": "Job"
        },
        "error": {
          "type": "string",
          "title": "Error"
        }
      },
      "type": "object",
      "required": [
        "job",
        "error"
      ],
      "title": "CancelJobError"
    }
  }
}