{
  "$schema": "http://json-schema.org/schema",
  "cli": "nx",
  "$id": "CustomMessage",
  "title": "Create a custom message component for Botonic",
  "description": "Generate a custom message component with automatic registration in the bot application.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the custom message component.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use for the custom message?",
      "pattern": "^[a-zA-Z].*$"
    },
    "project": {
      "type": "string",
      "description": "The name of the botonic project to add the custom message to.",
      "x-prompt": "Which botonic project should this custom message be added to?",
      "$default": {
        "$source": "projectName"
      }
    },
    "directory": {
      "type": "string",
      "description": "The directory within custom-messages to create the component (optional).",
      "alias": "dir"
    },
    "skipTests": {
      "type": "boolean",
      "description": "Skip generating test files.",
      "default": false
    },
    "skipAction": {
      "type": "boolean",
      "description": "Skip generating an example action that uses this custom message.",
      "default": false
    }
  },
  "required": ["name", "project"]
}
