forked from solana-mobile/mobile-wallet-adapter-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallet-schema.json
48 lines (48 loc) · 1.47 KB
/
wallet-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
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://solanamobile.com/mwa-wallet-registry-v1-0.json",
"title": "Mobile Wallet Adapter wallet registry entry",
"description": "A wallet app supporting the Mobile Wallet Adapter protocol specification",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
},
"entity": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
},
"url": {
"type": "string",
"format": "uri"
},
"icon": {
"type": "string",
"format": "uri-reference"
},
"protocol_specification_version": {"enum": [ "1.0" ] },
"android": {
"type": "object",
"properties": {
"application_id": {
"type": "string",
"pattern": "^([a-zA-Z][a-zA-Z0-9_]*\\.)+[a-zA-Z][a-zA-Z0-9_]*$"
}
},
"required": [ "application_id" ]
},
"ios": {
"$comment": "iOS schema is not yet implemented (as MWA support for iOS is not complete)",
"type": "object",
"not": true
}
},
"oneOf": [
{ "required": ["android"] },
{ "required": ["ios"] }
],
"required": [ "name", "entity", "url", "icon", "protocol_specification_version" ]
}