{
  "$schema": "http://json-schema.org/schema",
  "$id": "SchematicsSharedModulePage",
  "title": "Shared Module Page Schema",
  "type": "object",
  "properties": {
    "type": {
      "description": "The type of shared module.",
      "type": "string",
      "enum": [
        "component",
        "directive",
        "pipe",
        "service"
      ]
    },
    "name": {
      "description": "The name of the shared module.",
      "type": "string",
      "minLength": 1
    },
    "intoSection": {
      "type": "boolean",
      "description": "When true, generates shared module inside a section."
    },
    "section": {
      "type": "string",
      "description": "The name of the section in which the shared module will be generated.",
      "minLength": 1
    },
    "intoParentPage": {
      "type": "boolean",
      "description": "When true, generates shared module inside a parent page."
    },
    "parentPage": {
      "type": "string",
      "description": "The name of the parent page in which the shared module will be generated.",
      "minLength": 1,
      "x-prompt": "What is the name of the parent page?"
    },
    "intoPage": {
      "type": "boolean",
      "description": "When true, generates shared module inside a page."
    },
    "page": {
      "type": "string",
      "description": "The name of the page."
    },
    "path": {
      "type": "string",
      "format": "path",
      "description": "The path to create the shared module.",
      "visible": false
    }
  },
  "required": [
    "name",
    "type",
    "intoSection",
    "intoPage",
    "intoParentPage",
    "section",
    "page",
    "parentPage"
  ]
}
