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