{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Optimization",
  "title": "Optimization",
  "type": "object",
  "required": [
    "optimizer",
    "progress",
    "segments",
    "status",
    "uuid"
  ],
  "properties": {
    "uuid": {
      "description": "Unique identifier of the optimization process.\n\nAfter the optimization is complete, a new segment will be created with this UUID.",
      "type": "string",
      "format": "uuid"
    },
    "optimizer": {
      "description": "Name of the optimizer that performed this optimization.",
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/TrackerStatus"
    },
    "segments": {
      "description": "Segments being optimized.\n\nAfter the optimization is complete, these segments will be replaced by the new optimized segment.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OptimizationSegmentInfo"
      }
    },
    "progress": {
      "$ref": "#/components/schemas/ProgressTree"
    }
  }
}