-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.json
111 lines (111 loc) · 3.13 KB
/
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
108
109
110
111
{
"$id": "https://raw.githubusercontent.com/roadrunner-server/kv/refs/heads/master/schema.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"description": "All the valid configuration parameters for the KV plugin for RoadRunner.",
"type": "object",
"title": "roadrunner-kv",
"minProperties": 1,
"additionalProperties": false,
"patternProperties": {
"[a-zA-Z0-9_-]*": {
"description": "The name of the key-value storage, as used in your application.",
"type": "object",
"additionalProperties": false,
"required": [
"driver"
],
"properties": {
"driver": {
"description": "The driver to use.",
"type": "string",
"enum": [
"boltdb",
"memcached",
"memory",
"redis"
]
},
"config": {
"description": "You may override the global configuration of the driver. If you provided a global configuration for the plugin, this section can be omitted and the global configuration will be used instead. If neither are present, the KV storage will not load.",
"type": "object"
}
},
"if": {
"properties": {
"driver": {
"enum": [
"boltdb"
]
}
}
},
"then": {
"properties": {
"config": {
"$ref": "https://raw.githubusercontent.com/roadrunner-server/boltdb/refs/heads/master/schema.json#/definitions/driver"
}
}
},
"else": {
"if": {
"properties": {
"driver": {
"enum": [
"memcached"
]
}
}
},
"then": {
"properties": {
"config": {
"$ref": "https://raw.githubusercontent.com/roadrunner-server/memcached/refs/heads/master/schema.json"
}
}
},
"else": {
"if": {
"properties": {
"driver": {
"enum": [
"redis"
]
}
}
},
"then": {
"properties": {
"config": {
"$ref": "https://raw.githubusercontent.com/roadrunner-server/redis/refs/heads/master/schema.json"
}
}
},
"else": {
"if": {
"properties": {
"driver": {
"enum": [
"memory"
]
}
}
},
"then": {
"required": [
"driver",
"config"
],
"properties": {
"config": {
"type": "object",
"description": "The memory plugin does not support configuration, but requires an empty config object to be present due to parsing logic and the fact that memory has no global configuration to inherit from.",
"additionalProperties": false
}
}
}
}
}
}
}
}
}