{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schema.rtemis.org/cluster/v1/schema.json",
  "title": "rtemis ClusterConfig",
  "description": "Language-independent config for an rtemis clustering pipeline: a data reference, a `ClusteringConfig`, and an output directory.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "type": "string",
      "const": "https://schema.rtemis.org/cluster/v1/schema.json",
      "description": "JSON Schema URI for this config instance."
    },
    "dat_path": {
      "type": ["string", "null"],
      "default": null,
      "description": "Path to the input data."
    },
    "algorithm": {
      "type": ["string", "null"],
      "default": null,
      "description": "Clustering algorithm name."
    },
    "clustering_config": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "https://schema.rtemis.org/clustering/v1/schema.json"
        }
      ]
    },
    "outdir": {
      "type": "string",
      "default": "results/",
      "description": "Output directory for results."
    },
    "verbosity": {
      "type": "integer",
      "minimum": 0,
      "default": 1,
      "description": "Verbosity level."
    }
  }
}
