{
  "title": "Wizard Spec",
  "description": "WizardSpec defines a multi-step business process (Frontend §11).\n",
  "type": "object",
  "properties": {
    "action": {
      "description": "server action that commits all steps; if empty, final step plain-creates Entity",
      "type": "string"
    },
    "entity": {
      "description": "@schema {example: \"clinic.visit\"}",
      "type": "string",
      "examples": [
        "clinic.visit"
      ]
    },
    "on_complete": {
      "$ref": "#/$defs/WizardOnComplete",
      "nullable": true
    },
    "public": {
      "description": "If true (default), a route /module/wizard/\u003cname\u003e is auto-generated.",
      "type": "boolean",
      "examples": [
        "true"
      ],
      "nullable": true
    },
    "steps": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WizardStep"
      }
    },
    "title": {
      "type": "string"
    }
  },
  "required": [
    "title"
  ],
  "additionalProperties": false
}