{
  "$schema": "http://json-schema.org/schema",
  "$id": "SchematicsPageModule",
  "title": "Page Module Schema",
  "type": "object",
  "properties": {
    "section": {
      "description": "The name of the section in which the page will be generated.",
      "type": "string",
      "minLength": 1,
      "x-prompt": "What is the section name that should contain the page?"
    },
    "name": {
      "description": "The name of the new page.",
      "type": "string",
      "minLength": 1,
      "x-prompt": "What should be the name of the page?"
    },
    "store": {
      "type": "boolean",
      "description": "When true, installs store for the page.",
      "x-prompt": "Will you use the store on this page?",
      "default": true
    },
    "facade": {
      "type": "boolean",
      "description": "When true, create a facade file.",
      "x-prompt": "Will you use the facade file on this page?",
      "default": true
    },
    "intoParent": {
      "type": "boolean",
      "description": "When true, generates page inside a parent page.",
      "x-prompt": "Does this page have a parent page?",
      "default": false
    },
    "parent": {
      "type": "string",
      "description": "The name of the parent page.",
      "optional": true
    },
    "path": {
      "type": "string",
      "format": "path",
      "description": "The path to create the page.",
      "visible": false
    }
  },
  "required": [
    "section",
    "name"
  ]
}
