Skip to content

Commit be49f6f

Browse files
clydinKeen Yee Liau
authored and
Keen Yee Liau
committed
refactor(@schematics/angular): use multiselect auto-discovery in guard schematic
1 parent 2a689ff commit be49f6f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

packages/schematics/angular/guard/schema.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"type": "array",
5555
"description": "Specifies which interfaces to implement.",
5656
"uniqueItems": true,
57+
"minItems": 1,
5758
"items": {
5859
"enum": [
5960
"CanActivate",
@@ -65,17 +66,7 @@
6566
"default": [
6667
"CanActivate"
6768
],
68-
"minItems": 1,
69-
"x-prompt": {
70-
"message": "Which interfaces would you like to implement?",
71-
"type": "list",
72-
"multiselect": true,
73-
"items": [
74-
"CanActivate",
75-
"CanActivateChild",
76-
"CanLoad"
77-
]
78-
}
69+
"x-prompt": "Which interfaces would you like to implement?"
7970
}
8071
},
8172
"required": [

0 commit comments

Comments
 (0)