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