1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "id": "SchematicsAngularInterface",
|
4 | "title": "Angular Interface Options Schema",
|
5 | "type": "object",
|
6 | "description": "Creates a new generic interface definition in the given or default project.",
|
7 | "properties": {
|
8 | "name": {
|
9 | "type": "string",
|
10 | "description": "The name of the interface.",
|
11 | "$default": {
|
12 | "$source": "argv",
|
13 | "index": 0
|
14 | },
|
15 | "x-prompt": "What name would you like to use for the interface?"
|
16 | },
|
17 | "path": {
|
18 | "type": "string",
|
19 | "format": "path",
|
20 | "description": "The path at which to create the interface, relative to the workspace root.",
|
21 | "visible": false
|
22 | },
|
23 | "project": {
|
24 | "type": "string",
|
25 | "description": "The name of the project.",
|
26 | "$default": {
|
27 | "$source": "projectName"
|
28 | }
|
29 | },
|
30 | "prefix": {
|
31 | "type": "string",
|
32 | "default": "",
|
33 | "description": "A prefix to apply to generated selectors."
|
34 | },
|
35 | "type": {
|
36 | "type": "string",
|
37 | "description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\".",
|
38 | "$default": {
|
39 | "$source": "argv",
|
40 | "index": 1
|
41 | }
|
42 | },
|
43 | "lintFix": {
|
44 | "type": "boolean",
|
45 | "default": false,
|
46 | "description": "When true, applies lint fixes after generating the interface.",
|
47 | "x-user-analytics": 15
|
48 | }
|
49 | },
|
50 | "required": [
|
51 | "name"
|
52 | ]
|
53 | }
|