forked from cyclosproject/ng-swagger-gen
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathng-swagger-gen-schema.json
91 lines (91 loc) · 3.33 KB
/
ng-swagger-gen-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"$schema": "http://json-schema.org/schema",
"id": "https://github.com/cyclosproject/ng-swagger-gen/blob/master/ng-swagger-gen-schema.json",
"title": "Options for ng-swagger-gen",
"type": "object",
"required": [
"swagger"
],
"properties": {
"$schema": {
"type": "string"
},
"config": {
"description": "The location of the configuration file.",
"type": "string",
"default": "ng-swagger-gen.json"
},
"swagger": {
"description": "The location of the swagger descriptor in JSON format.\nMay be either a local file or URL.",
"type": "string"
},
"output": {
"description": "Where generated files will be written to. Defaults to 'src/app/api'.",
"type": "string",
"default": "src/app/api"
},
"includeTags": {
"description": "When specified, filters the generated services, including only those corresponding to this list of tags.",
"type": "array",
"items": {
"type": "string"
}
},
"excludeTags": {
"description": "When specified, filters the generated services, excluding any service corresponding to this list of tags.",
"type": "array",
"items": {
"type": "string"
}
},
"ignoreUnusedModels": {
"description": "Indicates whether or not to ignore model files that are not referenced by any operation. Defaults to true.",
"type": "boolean",
"default": "true"
},
"minParamsForContainer": {
"description": "Indicates the minimum number of parameters to wrap operation parameters in a container class. Defaults to 2.",
"type": "integer",
"default": "2"
},
"defaultTag": {
"description": "The assumed tag for operations that don't define any. Defaults to 'Api'",
"type": "string",
"default": "Api"
},
"removeStaleFiles": {
"description": "Indicates whether or not to remove any files in the output folder that were not generated by ng-swagger-gen. Defaults to true.",
"type": "boolean",
"default": "true"
},
"modelIndex": {
"description": "Indicates whether or not to generate the file which exports all models. Defaults to true.",
"type": "boolean",
"default": "true"
},
"serviceIndex": {
"description": "Indicates whether or not to generate the file which exports all services. Defaults to true.",
"type": "boolean",
"default": "true"
},
"apiModule": {
"description": "Indicates whether or not to generate the Angular module which provides all services. Defaults to true.",
"type": "boolean",
"default": "true"
},
"enumModule": {
"description": "Indicates whether or not to export an additional TypeScript module (not to be confused with Angular's @NgModule) for each enum model, exporting values as constants and providing the values() method. Setting to false will reduce the size of the generated code. Defaults to true.",
"type": "boolean",
"default": "true"
},
"templates": {
"description": "Path to override the Mustache templates used to generate files.",
"type": "string"
},
"generateExamples": {
"description": "Indicates whether or not to generate the example files from the example sections of the models. Defaults to false.",
"type": "boolean",
"default": "false"
}
}
}