{
  "$schema": "http://json-schema.org/schema",
  "cli": "nx",
  "$id": "Webview",
  "title": "Create a webview component for Botonic",
  "description": "Generate a client-side webview component with automatic registration in the webviews app.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the webview component.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use for the webview?",
      "pattern": "^[a-zA-Z].*$"
    },
    "project": {
      "type": "string",
      "description": "The name of the botonic project to add the webview to.",
      "x-prompt": "Which botonic project should this webview be added to?",
      "$default": {
        "$source": "projectName"
      }
    },
    "skipTests": {
      "type": "boolean",
      "description": "Skip generating test files.",
      "default": false
    }
  },
  "required": ["name", "project"]
}
