{
  "$schema": "https://json-schema.org/schema",
  "$id": "NxNestControllerGenerator",
  "title": "Nest Controller Options Schema",
  "description": "Nest Controller Options Schema.",
  "cli": "nx",
  "type": "object",
  "examples": [
    {
      "description": "Generate the controller `FooController` at `myapp/src/app/foo.controller.ts`",
      "command": "nx g @nx/nest:controller myapp/src/app/foo.controller.ts"
    },
    {
      "description": "Generate the controller without providing the file extension. It results in the controller `FooController` at `myapp/src/app/foo.controller.ts`",
      "command": "nx g @nx/nest:controller myapp/src/app/foo"
    }
  ],
  "properties": {
    "path": {
      "description": "The file path to the controller. Relative to the current working directory.",
      "type": "string",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What is the controller file path?"
    },
    "skipFormat": {
      "description": "Skip formatting files.",
      "type": "boolean",
      "default": false,
      "x-priority": "internal"
    },
    "unitTestRunner": {
      "description": "Test runner to use for unit tests.",
      "type": "string",
      "enum": ["jest", "none"],
      "default": "jest"
    },
    "language": {
      "description": "Nest controller language.",
      "type": "string",
      "enum": ["js", "ts"]
    },
    "skipImport": {
      "description": "Flag to skip the module import.",
      "type": "boolean",
      "default": false
    },
    "module": {
      "description": "Allows specification of the declaring module.",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "required": ["path"]
}
