{
  "$schema": "http://json-schema.org/schema",
  "id": "SchematicsAngularGuard",
  "title": "Angular Guard Options Schema",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the guard."
    },
    "spec": {
      "type": "boolean",
      "description": "Specifies if a spec file is generated.",
      "default": true
    },
    "flat": {
      "type": "boolean",
      "description": "Flag to indicate if a dir is created.",
      "default": true
    },
    "module":  {
      "type": "string",
      "description": "Allows specification of the declaring module.",
      "alias": "m"
    },
    "path": {
      "type": "string",
      "format": "path",
      "description": "The path to create the guard.",
      "default": "app",
      "visible": false
    },
    "sourceDir": {
      "type": "string",
      "format": "path",
      "description": "The path of the source directory.",
      "default": "src",
      "visible": false
    },
    "appRoot": {
      "type": "string",
      "format": "path",
      "description": "The root of the application.",
      "visible": false
    }
  },
  "required": [
    "name"
  ]
}
