-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcsharp-client.json
93 lines (93 loc) · 3.47 KB
/
csharp-client.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://webapiproxy.io/csharp",
"type": "object",
"title": "Root schema.",
"description": "An explanation about the puropose of this instance described by this schema.",
"name": "/",
"properties": {
"generateOnBuild": {
"id": "http://webapiproxy.io/csharp/generateOnBuild",
"type": "boolean",
"title": "GenerateOnBuild schema.",
"description": "A flag to generate every time upon build",
"name": "generateOnBuild",
"default": "false"
},
"generateAsyncReturnTypes": {
"id": "http://webapiproxy.io/csharp/generateAsyncReturnTypes",
"type": "boolean",
"title": "GenerateAsyncReturnTypes schema.",
"description": "A flag to generate async methods",
"name": "generateAsyncReturnTypes",
"default": "false"
},
"services": {
"id": "http://webapiproxy.io/csharp/services",
"type": "array",
"title": "Services schema.",
"description": "An explanation about the puropose of this instance described by this schema.",
"name": "services",
"items": {
"id": "http://webapiproxy.io/csharp/services/service",
"type": "object",
"title": "Service schema.",
"description": "Definition of a single API service host",
"name": "service",
"properties": {
"proxyEndpoint": {
"id": "http://webapiproxy.io/csharp/services/service/proxyEndpoint",
"type": "string",
"title": "ProxyEndpoint schema.",
"description": "The proxy endpoint containing the WebApiProxy metadata describing the service",
"name": "proxyEndpoint",
"required": true
},
"clientSuffix": {
"id": "http://webapiproxy.io/csharp/services/service/clientSuffix",
"type": "string",
"title": "ClientSuffix schema.",
"description": "The suffix to use for the generated clients",
"name": "clientSuffix",
"default": "Client"
},
"namespace": {
"id": "http://webapiproxy.io/csharp/services/service/namespace",
"type": "string",
"title": "Namespace schema.",
"description": "Default unique namespace for generated clients specific to host",
"name": "namespace",
"required": true
},
"name": {
"id": "http://webapiproxy.io/csharp/services/service/name",
"type": "string",
"title": "Name schema.",
"description": "An unique name to identify the API service",
"name": "name",
"required": true
},
"includeValidation": {
"id": "http://webapiproxy.io/csharp/services/service/includeValidation",
"type": "boolean",
"title": "IncludeValidation schema.",
"description": "Includes any validation sourced from DataAnnotations",
"name": "includeValidation",
"default": "false"
},
"ensureSuccess": {
"id": "http://webapiproxy.io/csharp/services/service/ensureSuccess",
"type": "boolean",
"title": "EnsureSuccess schema.",
"description": "Generates code to force throwing of exception when service does not reply with 200 OK",
"name": "ensureSuccess",
"default": "false"
}
}
}
}
},
"required": [
"services"
]
}