{
  "$schema": "http://json-schema.org/schema",
  "$id": "NxBootMavenParentProject",
  "title": "Create a parent project",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use?",
      "pattern": "^[a-zA-Z].*$"
    },
    "tags": {
      "type": "string",
      "description": "Add tags to the project (used for linting)",
      "alias": "t"
    },
    "directory": {
      "type": "string",
      "description": "A directory where the project is placed",
      "alias": "dir"
    },
    "simpleName": {
      "description": "Don't include the directory in the project name",
      "type": "boolean",
      "default": false
    },
    "projectType": {
      "description": "Type of the parent project",
      "type": "string",
      "default": "application",
      "x-prompt": {
        "message": "Which projectType would you like to generate?",
        "type": "list",
        "items": [
          {
            "value": "application",
            "label": "Application"
          },
          {
            "value": "library",
            "label": "Library"
          }
        ]
      }
    },
    "groupId": {
      "type": "string",
      "default": "com.example",
      "x-prompt": "What groupId would you like to use?"
    },
    "projectVersion": {
      "type": "string",
      "default": "0.0.1-SNAPSHOT",
      "description": "Version of the project to generate",
      "alias": "v",
      "x-prompt": "What project version would you like to use?"
    },
    "parentProject": {
      "type": "string",
      "description": "ArtifactId of the parent project or leave it blank for the root project"
    },
    "aggregatorProject": {
      "type": "string",
      "description": "ArtifactId of the aggregator project (that manages a group of submodules) or leave it blank for the root project"
    }
  },
  "required": ["name", "projectType", "groupId", "projectVersion"]
}
