{
  "$id": "https://schema.rtemis.org/conformal/v1/schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "rtemis ConformalConfig",
  "description": "Language-independent config for an rtemis conformal prediction region. Mirrors the `ConformalConfig` object: a construction plus its construction-specific settings. The construction is tagged rather than inferred, since which of them a run may use depends on the model it is applied to, not on the document.",
  "type": "object",
  "properties": {
    "$schema": {
      "description": "JSON Schema URI for this config instance.",
      "type": "string",
      "const": "https://schema.rtemis.org/conformal/v1/schema.json"
    },
    "type": {
      "description": "Conformal construction.",
      "type": "string",
      "enum": ["Split", "CVPlus", "CQR"],
      "x-rtemis": {
        "type": "string"
      }
    }
  },
  "required": ["type"],
  "unevaluatedProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "type": {
            "const": "Split"
          }
        },
        "required": ["type"]
      },
      "then": {
        "$ref": "https://schema.rtemis.org/conformal/split/v1/schema.json"
      }
    },
    {
      "if": {
        "properties": {
          "type": {
            "const": "CVPlus"
          }
        },
        "required": ["type"]
      },
      "then": {
        "$ref": "https://schema.rtemis.org/conformal/cvplus/v1/schema.json"
      }
    },
    {
      "if": {
        "properties": {
          "type": {
            "const": "CQR"
          }
        },
        "required": ["type"]
      },
      "then": {
        "$ref": "https://schema.rtemis.org/conformal/cqr/v1/schema.json"
      }
    }
  ]
}
