{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "SchematicsAngularTemplate",
  "title": "Angular Template Schema",
  "cli": "nx",
  "type": "object",
  "description": "Generate a new feature-group template.",
  "additionalProperties": false,
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "ErrorTemplate-NoLayout",
        "AuthenticationTemplate-WithLayout",
        "LandingTemplate-WithLayout"
      ],
      "description": "Type of template which will be created.",
      "x-prompt": {
        "message": "What type of template to be created? (--type)",
        "type": "list",
        "items": [
          {
            "value": "ErrorTemplate-NoLayout",
            "label": "ErrorTemplate-NoLayout"
          },
          {
            "value": "AuthenticationTemplate-WithLayout",
            "label": "AuthenticationTemplate-WithLayout"
          },
          {
            "value": "LandingTemplate-WithLayout",
            "label": "LandingTemplate-WithLayout"
          }
        ]
      }
    },
    "name": {
      "type": "string",
      "description": "Name of feature group.",
      "x-prompt": "What name would you like to use for new feature group?"
    },
    "layoutName": {
      "type": "string",
      "description": "Name of layout feature will be generated in feature-group `layout`. Only neccessary if template type require a layout, check template description.",
      "default": "{{name}}-layout"
    }
  },
  "required": ["type", "name", "layoutName"]
}
