forked from Haroldwonder/AnchorKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_schema.json
More file actions
113 lines (113 loc) · 3.13 KB
/
Copy pathconfig_schema.json
File metadata and controls
113 lines (113 loc) · 3.13 KB
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
112
113
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "AnchorKit Configuration Schema",
"type": "object",
"required": ["contract", "attestors", "sessions"],
"properties": {
"contract": {
"type": "object",
"required": ["name", "version", "network"],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9-]+$"
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 16,
"pattern": "^\\d+\\.\\d+\\.\\d+$"
},
"description": {
"type": "string",
"maxLength": 256
},
"network": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"enum": ["stellar-testnet", "stellar-mainnet", "stellar-futurenet"]
}
},
"additionalProperties": false
},
"attestors": {
"type": "object",
"required": ["registry"],
"properties": {
"registry": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"required": ["name", "address", "endpoint", "role", "enabled"],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9-]+$"
},
"address": {
"type": "string",
"minLength": 54,
"maxLength": 56,
"pattern": "^G[A-Z0-9]{55}$"
},
"description": {
"type": "string",
"maxLength": 256
},
"endpoint": {
"type": "string",
"minLength": 8,
"maxLength": 256,
"pattern": "^https?://[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}(/.*)?$"
},
"role": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"enum": ["kyc-issuer", "transfer-verifier", "compliance-approver", "rate-provider", "attestor"]
},
"enabled": {
"type": "boolean"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"sessions": {
"type": "object",
"required": ["enable_session_tracking", "session_timeout_seconds", "operations_per_session", "audit_log_retention_days"],
"properties": {
"enable_session_tracking": {
"type": "boolean"
},
"session_timeout_seconds": {
"type": "integer",
"minimum": 1,
"maximum": 86400
},
"operations_per_session": {
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"audit_log_retention_days": {
"type": "integer",
"minimum": 1,
"maximum": 3650
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}