source: trip-planner-front/node_modules/@schematics/angular/guard/schema.json@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.9 KB
Line 
1{
2 "$schema": "http://json-schema.org/draft-07/schema",
3 "$id": "SchematicsAngularGuard",
4 "title": "Angular Guard Options Schema",
5 "type": "object",
6 "description": "Generates a new, generic route guard definition in the given or default project.",
7 "additionalProperties": false,
8 "properties": {
9 "name": {
10 "type": "string",
11 "description": "The name of the new route guard.",
12 "$default": {
13 "$source": "argv",
14 "index": 0
15 },
16 "x-prompt": "What name would you like to use for the guard?"
17 },
18 "skipTests": {
19 "type": "boolean",
20 "description": "Do not create \"spec.ts\" test files for the new guard.",
21 "default": false,
22 "x-user-analytics": 12
23 },
24 "flat": {
25 "type": "boolean",
26 "description": "When true (the default), creates the new files at the top level of the current project.",
27 "default": true
28 },
29 "path": {
30 "type": "string",
31 "format": "path",
32 "description": "The path at which to create the interface that defines the guard, relative to the current workspace.",
33 "visible": false
34 },
35 "project": {
36 "type": "string",
37 "description": "The name of the project.",
38 "$default": {
39 "$source": "projectName"
40 }
41 },
42 "lintFix": {
43 "type": "boolean",
44 "description": "Apply lint fixes after generating the guard.",
45 "x-user-analytics": 15,
46 "x-deprecated": "Use \"ng lint --fix\" directly instead."
47 },
48 "implements": {
49 "type": "array",
50 "description": "Specifies which interfaces to implement.",
51 "uniqueItems": true,
52 "minItems": 1,
53 "items": {
54 "enum": ["CanActivate", "CanActivateChild", "CanDeactivate", "CanLoad"],
55 "type": "string"
56 },
57 "default": ["CanActivate"],
58 "x-prompt": "Which interfaces would you like to implement?"
59 }
60 },
61 "required": ["name"]
62}
Note: See TracBrowser for help on using the repository browser.