This repository has been archived by the owner on Sep 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.spec.json
96 lines (96 loc) · 2.82 KB
/
config.spec.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
{
"name": "graphql-rest-proxy-config",
"enums": {
"location": {
"values": [
{ "name": "args" },
{ "name": "instance" }
]
}
},
"models": {
"config": {
"fields": [
{ "name": "base_url", "type": "string" },
{ "name": "enums", "type": "map[enum]" },
{ "name": "unions", "type": "map[union]" },
{ "name": "models", "type": "map[model]" },
{ "name": "resources", "type": "map[resource]" }
]
},
"enum": {
"fields": [
{ "name": "values", "type": "[enum_value]" }
]
},
"enum_value": {
"fields": [
{ "name": "name", "type": "string" },
{ "name": "description", "type": "string", "required": false }
]
},
"union": {
"fields": [
{ "name": "description", "type": "string", "required": false },
{ "name": "discriminator", "type": "string", "required": false },
{ "name": "types", "type": "[union_type]" }
]
},
"union_type": {
"fields": [
{ "name": "name", "type": "string" }
]
},
"model": {
"fields": [
{ "name": "description", "type": "string", "required": false },
{ "name": "fields", "type": "[model_field]" },
{ "name": "links", "type": "[link]", "required": false }
]
},
"model_field": {
"fields": [
{ "name": "name", "type": "string" },
{ "name": "type", "type": "string" },
{ "name": "description", "type": "string", "required": false },
{ "name": "required", "type": "boolean", "required": false },
{ "name": "default", "type": "json", "required": false }
]
},
"link": {
"fields": [
{ "name": "name", "type": "string", "required": false },
{ "name": "type", "type": "string", "required": false },
{ "name": "params", "type": "[link_param]", "required": false }
]
},
"link_param": {
"fields": [
{ "name": "name", "type": "string" },
{ "name": "location", "type": "location" },
{ "name": "expression", "type": "string", "required": false },
{ "name": "inherit", "type": "boolean", "required": false }
]
},
"resource": {
"fields": [
{ "name": "many", "type": "resource_desc", "required": false },
{ "name": "one", "type": "resource_desc", "required": false }
]
},
"resource_desc": {
"fields": [
{ "name": "path", "type": "string" },
{ "name": "extract", "type": "string", "required": false },
{ "name": "params", "type": "map[param]" }
]
},
"param": {
"fields": [
{ "name": "type", "type": "string" },
{ "name": "required", "type": "boolean", "required": false },
{ "name": "default", "type": "json", "required": false }
]
}
}
}