{
  "$schema": "http://json-schema.org/schema",
  "$id": "NxBootMavenInit",
  "title": "Init",
  "type": "object",
  "properties": {
    "javaVersion": {
      "description": "Java version",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ],
      "default": "17",
      "x-prompt": {
        "message": "Which version of Java would you like to use?",
        "type": "list",
        "items": [
          {
            "value": "20",
            "label": "20"
          },
          {
            "value": "17",
            "label": "17"
          }
        ]
      }
    },
    "groupId": {
      "type": "string",
      "default": "com.example",
      "x-prompt": "What groupId would you like to use?"
    },
    "parentProjectName": {
      "type": "string",
      "default": "boot-multi-module",
      "x-prompt": "What parentProjectName would you like to use?",
      "pattern": "^[a-zA-Z].*$"
    },
    "parentProjectVersion": {
      "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?"
    }
  },
  "required": [
    "javaVersion",
    "groupId",
    "parentProjectName",
    "parentProjectVersion"
  ]
}
