{
  "$schema": "http://json-schema.org/schema",
  "$id": "SchematicsMaterialTree",
  "title": "Material Tree Options Schema",
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "format": "path",
      "description": "The path to create the component.",
      "visible": false
    },
    "project": {
      "type": "string",
      "description": "The name of the project.",
      "$default": {
        "$source": "projectName"
      }
    },
    "name": {
      "type": "string",
      "description": "The name of the component.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What should be the name of the component?"
    },
	"theme": {
      "description": "The theme to apply",
      "type": "string",
      "default": "default",
      "x-prompt": {
        "message": "Choose a prebuilt theme name, or \"custom\" for a custom theme:",
        "type": "list",
        "items": [
          { "value": "default",       "label": "Material Blue        [ Preview: https://htmlelements.com/demos/grid/overview/ ]" },
          { "value": "red",        "label": "Material Red" },
          { "value": "green",        "label": "Material Green" },
          { "value": "purple",        "label": "Material Purple" },
          { "value": "pink",        "label": "Material Pink" },
          { "value": "turquoise",        "label": "Material Turquoise" },
          { "value": "orange",        "label": "Material Orange" },
          { "value": "dark",        "label": "Material Dark Blue" },
	      { "value": "dark-red",        "label": "Material Dark Red" },
          { "value": "dark-green",        "label": "Material Dark Green" },
          { "value": "dark-purple",        "label": "Material Dark Purple" },
          { "value": "dark-pink",        "label": "Material Dark Pink" },
          { "value": "dark-turquoise",        "label": "Material Dark Turquoise" },
          { "value": "dark-orange",        "label": "Material Dark Orange" },
          { "value": "custom",            "label": "Custom" }
        ]
      }
    },	
    "inlineStyle": {
      "description": "Specifies if the style will be in the ts file.",
      "type": "boolean",
      "alias": "s"
    },
    "inlineTemplate": {
      "description": "Specifies if the template will be in the ts file.",
      "type": "boolean",
      "alias": "t"
    },
    "viewEncapsulation": {
      "description": "Specifies the view encapsulation strategy.",
      "enum": ["Emulated", "None"],
      "type": "string",
	  "default": "None",
      "alias": "v"
    },
    "changeDetection": {
      "description": "Specifies the change detection strategy.",
      "enum": ["Default", "OnPush"],
      "type": "string",
      "default": "Default",
      "alias": "c"
    },
    "prefix": {
      "type": "string",
      "format": "html-selector",
      "description": "The prefix to apply to generated selectors.",
      "alias": "p"
    },
    "style": {
      "description": "The file extension to be used for style files.",
      "type": "string"
    },
    "skipTests": {
      "type": "boolean",
      "description": "When true, does not generate a test file."
    },
    "flat": {
      "type": "boolean",
      "description": "Flag to indicate if a dir is created.",
      "default": false
    },
    "skipImport": {
      "type": "boolean",
      "description": "Flag to skip the module import.",
      "default": false
    },
    "selector": {
      "type": "string",
      "format": "html-selector",
      "description": "The selector to use for the component."
    },
    "module":  {
      "type": "string",
      "description": "Allows specification of the declaring module.",
      "alias": "m"
    },
    "export": {
      "type": "boolean",
      "default": false,
      "description": "Specifies if declaring module exports the component."
    },
    "entryComponent": {
      "type": "boolean",
      "default": false,
      "description": "Specifies if the component is an entry component of declaring module."
    }
  },
  "required": ["name"]
}