UNPKG

1.48 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/draft-07/schema",
3 "$id": "SchematicsAngularInterceptor",
4 "title": "Angular Interceptor Options Schema",
5 "type": "object",
6 "additionalProperties": false,
7 "description": "Creates a new, generic interceptor definition in the given project.",
8 "properties": {
9 "name": {
10 "type": "string",
11 "description": "The name of the interceptor.",
12 "$default": {
13 "$source": "argv",
14 "index": 0
15 },
16 "x-prompt": "What name would you like to use for the interceptor?"
17 },
18 "path": {
19 "type": "string",
20 "format": "path",
21 "$default": {
22 "$source": "workingDirectory"
23 },
24 "description": "The path at which to create the interceptor, 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 "flat": {
35 "type": "boolean",
36 "default": true,
37 "description": "When true (the default), creates files at the top level of the project."
38 },
39 "skipTests": {
40 "type": "boolean",
41 "description": "Do not create \"spec.ts\" test files for the new interceptor.",
42 "default": false
43 },
44 "functional": {
45 "type": "boolean",
46 "description": "Creates the interceptor as a `HttpInterceptorFn`.",
47 "default": true
48 }
49 },
50 "required": ["name", "project"]
51}