{
  "$schema": "http://json-schema.org/schema",
  "$id": "SchematicsSharedModuleSection",
  "title": "Shared Module Section 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,
      "x-prompt": "What is the section name that should contain this shared module?"
    },
    "parentPage": {
      "type": "string",
      "description": "The name of the parent page in which the shared module will be generated."
    },
    "intoPage": {
      "type": "boolean",
      "description": "When true, generates shared module inside a page.",
      "x-prompt": "Would you like to generate this shared module inside a page?"
    },
    "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",
    "intoSection",
    "section"
  ]
}
