{
  "$id": "https://schema.rtemis.org/explanation/v1/schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "rtemis ExplanationConfig",
  "description": "Language-independent config for a per-case rtemis explanation. Mirrors the `ExplanationConfig` object: a kind of explanation plus its kind-specific settings. The kind is tagged rather than inferred, so a second kind of explanation can be added without changing how the first is read.",
  "type": "object",
  "properties": {
    "$schema": {
      "description": "JSON Schema URI for this config instance.",
      "type": "string",
      "const": "https://schema.rtemis.org/explanation/v1/schema.json"
    },
    "type": {
      "description": "Kind of explanation.",
      "type": "string",
      "enum": ["SHAP"],
      "x-rtemis": {
        "type": "string"
      }
    }
  },
  "required": ["type"],
  "unevaluatedProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "type": {
            "const": "SHAP"
          }
        },
        "required": ["type"]
      },
      "then": {
        "$ref": "https://schema.rtemis.org/explanation/shap/v1/schema.json"
      }
    }
  ]
}
