{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://litlfred.github.io/folio-assistant/cat-harness/skills/dmn-authoring/input.schema.json",
  "title": "DMN Authoring Input",
  "description": "Input schema for DMN (Decision Model and Notation) decision table authoring.",
  "type": "object",
  "required": [
    "decisionName",
    "inputVariables"
  ],
  "properties": {
    "decisionName": {
      "type": "string",
      "description": "Name of the decision to model."
    },
    "inputVariables": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "string",
              "integer",
              "boolean",
              "date",
              "codeable-concept"
            ]
          }
        }
      }
    },
    "sourceLogic": {
      "type": "string",
      "description": "Reference to the clinical decision logic being modeled."
    }
  }
}
