UNPKG

1.16 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/schema",
3 "id": "SchematicsAngularEnum",
4 "title": "Angular Enum Options Schema",
5 "type": "object",
6 "description": "Generates a new, generic enum definition for the given or default project.",
7 "properties": {
8 "name": {
9 "type": "string",
10 "description": "The name of the enum.",
11 "$default": {
12 "$source": "argv",
13 "index": 0
14 },
15 "x-prompt": "What name would you like to use for the enum?"
16 },
17 "path": {
18 "type": "string",
19 "format": "path",
20 "description": "The path at which to create the enum definition, relative to the current workspace.",
21 "visible": false
22 },
23 "project": {
24 "type": "string",
25 "description": "The name of the project in which to create the enum. Default is the configured default project for the workspace.",
26 "$default": {
27 "$source": "projectName"
28 }
29 },
30 "lintFix": {
31 "type": "boolean",
32 "default": false,
33 "description": "When true, applies lint fixes after generating the enum.",
34 "x-user-analytics": 15
35 }
36 },
37 "required": [
38 "name"
39 ]
40}