{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schema.rtemis.org/tuner/v1/schema.json",
  "title": "rtemis TunerConfig",
  "description": "Language-independent config for rtemis hyperparameter tuning. Mirrors the `TunerConfig` object: a tuner type and a type-specific `config`.",
  "type": "object",
  "required": ["type", "config"],
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "type": "string",
      "const": "https://schema.rtemis.org/tuner/v1/schema.json",
      "description": "JSON Schema URI for this config instance."
    },
    "type": {
      "type": "string",
      "enum": ["GridSearch"],
      "description": "Tuner type."
    },
    "config": {
      "type": "object",
      "description": "Variant-specific parameters. Validated per `type` below."
    }
  },
  "allOf": [
    {
      "if": {
        "properties": {
          "type": {
            "const": "GridSearch"
          }
        },
        "required": ["type"]
      },
      "then": {
        "properties": {
          "config": {
            "$ref": "https://schema.rtemis.org/tuner/gridsearch/v1/schema.json"
          }
        }
      }
    }
  ]
}
