{
  "$schema": "http://json-schema.org/schema",
  "$id": "xplatfeature",
  "title": "Create a feature in xplat.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Feature name",
      "$default": {
        "$source": "argv",
        "index": 0
      }
    },
    "projects": {
      "type": "string",
      "description": "Project names"
    },
    "platforms": {
      "type": "string",
      "description": "Target platforms",
      "platforms": {
        "type": "string",
        "description": "Platforms.",
        "x-prompt": {
          "message": "For which platform?",
          "type": "list",
          "items": [
            {
              "value": "electron",
              "label": "electron          [Electron app]"
            },
            {
              "value": "ionic",
              "label": "ionic             [Ionic app]"
            },
            {
              "value": "nativescript",
              "label": "nativescript      [NativeScript app]"
            },
            {
              "value": "web",
              "label": "web               [Web app]"
            }
          ]
        }
      }
    },
    "framework": {
      "type": "string",
      "description": "Frontend framework.",
      "default": "angular"
    },
    "onlyProject": {
      "type": "boolean",
      "description": "Generate for specified projects only and ignore shared code.",
      "default": false
    },
    "onlyModule": {
      "type": "boolean",
      "description": "Generate just the module and ignore the default component.",
      "default": false
    },
    "createBase": {
      "type": "boolean",
      "description": "Create base component for maximum code sharing.",
      "default": false
    },
    "routing": {
      "type": "boolean",
      "description": "Whether to generate routing support or not (Only when used with --onlyProject).",
      "default": false
    },
    "adjustSandbox": {
      "type": "boolean",
      "description": "Automatically add a button to link to the feature route. Requires flags: --onlyProject --routing",
      "default": false
    },
    "skipFormat": {
      "description": "Skip formatting files",
      "type": "boolean",
      "default": false
    }
  },
  "required": []
}
