{
  "$id": "https://schemas.ump.dev/v1/adapter-optimize-request.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "bounds": {
      "additionalProperties": {
        "maxItems": 2,
        "minItems": 2,
        "prefixItems": [
          {
            "type": "number"
          },
          {
            "type": "number"
          }
        ],
        "type": "array"
      },
      "description": "channel -> (min, max) spend",
      "title": "Bounds",
      "type": "object"
    },
    "fit_id": {
      "title": "Fit Id",
      "type": "string"
    },
    "n_draws": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "N Draws"
    },
    "objective": {
      "default": "mean",
      "enum": [
        "mean",
        "p10",
        "cvar5"
      ],
      "title": "Objective",
      "type": "string"
    },
    "seed": {
      "default": 0,
      "title": "Seed",
      "type": "integer"
    },
    "total_budget": {
      "exclusiveMinimum": 0,
      "title": "Total Budget",
      "type": "number"
    }
  },
  "required": [
    "fit_id",
    "total_budget"
  ],
  "title": "OptimizeRequest",
  "type": "object"
}
