-
Notifications
You must be signed in to change notification settings - Fork 14
/
schema.coffee
59 lines (54 loc) · 1.42 KB
/
schema.coffee
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
module.exports =
description: "A moderately complex schema with some nesting and value constraints"
type: "object"
additionalProperties: false
required: ["api_server", "transport", "storage", "chain"]
properties:
api_server:
description: "Settings for the HTTP API server"
type: "object"
additionalProperties: false
required: ["url", "host", "port"]
properties:
url:
type: "string"
format: "uri"
host:
type: "string"
port:
type: "integer"
minimum: 1000
transport:
description: "Settings for the Redis tranport"
additionalProperties: false
required: ["server"]
properties:
server:
type: "string"
options:
type: "object"
queues:
properties:
blocking_timeout:
type: "integer"
minimum: 0
storage:
description: "Settings for the PostgreSQL storage"
required: ["server", "database", "user"]
properties:
server:
type: "string"
database:
type: "string"
user:
type: "string"
options:
type: "object"
chain:
description: "Settings for the Chain.com client"
required: ["api_key_id", "api_key_secret"]
properties:
api_key_id:
type: "string"
api_key_secret:
type: "string"