{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "ngwr-page",
  "title": "ngwr page",
  "type": "object",
  "properties": {
    "preset": {
      "type": "string",
      "enum": ["form", "table", "dashboard"],
      "description": "Starter shape.",
      "$default": { "$source": "argv", "index": 0 },
      "x-prompt": {
        "message": "Page preset?",
        "type": "list",
        "items": [
          { "value": "form", "label": "form — wr-form-field + wr-input + wr-button" },
          { "value": "table", "label": "table — wr-table + sort + pagination" },
          { "value": "dashboard", "label": "dashboard — wr-card grid + wr-statistic" }
        ]
      }
    },
    "name": {
      "type": "string",
      "description": "Component dir name (e.g. `signup`). Defaults to the preset name.",
      "$default": { "$source": "argv", "index": 1 }
    },
    "path": {
      "type": "string",
      "format": "path",
      "description": "Parent directory. Defaults to `<sourceRoot>/app/pages`."
    },
    "project": {
      "type": "string",
      "description": "Target Angular project.",
      "$default": { "$source": "projectName" }
    }
  },
  "required": ["preset"]
}
