{
  "$schema": "http://json-schema.org/draft-07/schema",
  "id": "NestJsSchematics",
  "title": "",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of generated schematic",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use?"
    },
    "project": {
      "type": "string",
      "description": "The nest project to target",
      "$default": {
        "$source": "projectName"
      },
      "alias": "p",
      "x-prompt": "What Nest project would you like to target?"
    },
    "unitTestRunner": {
      "type": "string",
      "enum": ["jest", "none"],
      "description": "Test runner to use for unit tests",
      "default": "jest"
    },
    "directory": {
      "type": "string",
      "description": "Directory where the generated files are placed",
      "aliases": ["d", "path"]
    },
    "flat": {
      "type": "boolean",
      "default": false,
      "description": "Flag to indicate if a directory is created."
    }
  },
  "additionalProperties": true,
  "required": ["name", "project"]
}
