{
  "$schema": "http://json-schema.org/schema",
  "cli": "nx",
  "$id": "Action",
  "title": "Create a bot action for Botonic",
  "description": "Generate a server-side bot action with automatic registration in routes.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the action.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use for the action?",
      "pattern": "^[a-zA-Z].*$"
    },
    "project": {
      "type": "string",
      "description": "The name of the botonic project to add the action to.",
      "x-prompt": "Which botonic project should this action be added to?",
      "$default": {
        "$source": "projectName"
      }
    },
    "skipTests": {
      "type": "boolean",
      "description": "Skip generating test files.",
      "default": false
    },
    "skipRoute": {
      "type": "boolean",
      "description": "Skip registering a route for this action in routes.ts.",
      "default": false
    },
    "routeMatcher": {
      "type": "string",
      "description": "The text matcher for the route (defaults to the kebab-case action name)."
    }
  },
  "required": ["name", "project"]
}
