-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathapplication_config_schema.json
107 lines (107 loc) · 2.52 KB
/
application_config_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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"$id": "application config",
"type": "object",
"$schema": "http://json-schema.org/draft-06/schema#",
"properties": {
"packageRoot": {
"type": "string",
"description": "The application package root",
"examples": [
"github.com/uber/zanzibar/examples/example-gateway"
]
},
"idlRootDir": {
"type": "string",
"description": "The path of idl directory, relative to application root directory",
"examples": [
"./idl"
]
},
"genCodePackage": {
"type": "object",
"properties": {
".thrift": {
"type": "string",
"description": "The package path for thriftrw generated code",
"examples": [
"github.com/uber/zanzibar/examples/example-gateway/build/gen-code"
]
},
".proto": {
"type": "string",
"description": "The package path for protobuf generated code",
"examples": [
"github.com/uber/zanzibar/examples/example-gateway/build/proto-gen"
]
}
}
},
"targetGenDir": {
"type": "The directory path of all generated code, relative to application root directory",
"description": "An explanation about the purpose of this instance.",
"examples": [
"./build"
]
},
"clientConfig": {
"type": "string",
"description": "The directory for client module configs, relative to application root directory",
"examples": [
"./clients"
]
},
"endpointConfig": {
"type": "string",
"description": "The directory for endpoint module configs, relative to application root directory",
"examples": [
"./endpoints"
]
},
"middlewareConfig": {
"type": "string",
"description": "The directory for middleware module configs, relative to application root directory",
"examples": [
"./middlewares"
]
},
"copyrightHeader": {
"type": "string",
"description": "The path of copyright header file, relative to application root directory",
"examples": [
"./copyright_header.txt"
]
},
"annotationPrefix": {
"type": "string",
"description": "The prefix for HTTP annotations in Thrift files",
"examples": [
"zanzibar"
]
},
"traceKey": {
"type": "string",
"description": "The name of the generated trace header",
"examples": [
"x-trace-id"
]
},
"genMock": {
"type": "boolean",
"description": "Whether to generate mocks during code generation",
"examples": [
true
]
}
},
"required": [
"packageRoot",
"idlRootDir",
"genCodePackage",
"targetGenDir",
"middlewareConfig",
"copyrightHeader",
"annotationPrefix",
"traceKey",
"genMock"
]
}