generated from Quang7hong81/acceptbitcoincash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
websites_schema.yml
83 lines (83 loc) · 2.46 KB
/
websites_schema.yml
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
type: map
class: websites
mapping:
"websites":
type: seq
sequence:
- type: map
class: site
name: Website
mapping:
"name":
type: str
desc: Name of site
required: yes
ident: yes
unique: yes
"url":
type: str
desc: URL of site, must be in HTTP or HTTPS format
pattern: /^(https?:\/\/)([\da-zA-Z0-9\.-]+)\.([a-zA-Z0-9\.]{2,8})([\/\w \.-]*)*\/?.*$/
required: yes
unique: yes
"img":
type: str
desc: Name for image file. Image should be 32x32px and end in .png
pattern: /\.png$/i
"bch":
type: bool
required: yes
desc: Do they accept BCH?
pattern: /(true|false)/
"btc":
type: bool
desc: Do they accept BTC?
pattern: /(true|false)/
"bsv":
type: bool
desc: Do they accept BSV?
pattern: /(true|false)/
"othercrypto":
type: bool
desc: Do they accept Other Crypto?
pattern: /(true|false)/
"exceptions":
type: map
mapping:
"text":
type: str
required: yes
"doc":
type: str
"twitter":
type: str
pattern: /(\w){1,15}$/
"facebook":
type: str
pattern: /(\w){1,50}$/
"email_address":
type: str
pattern: /\A([\w+\-].?)+@[a-z\d\-]+(\.[a-z]+)*\.[a-z]+\z/i
"status":
type: str
desc: This should only be on a listing if it is in the process of implementing BCH support but removed once it has completed. This is always a URL to the status of that effort.
pattern: /^(https?:\/\/)([\da-zA-Z0-9\.-]+)\.([a-zA-Z0-9\.]{2,8})([\/\w \.-]*)*\/?.*$/
"lang":
type: str
"region":
type: str
pattern: /(\w){2}$/
# enum: [af, na, oc, an, as, eu, sa]
"country":
type: str
pattern: /(\w){2}$/
"state":
type: str
"city":
type: str
"keywords":
type: seq
desc: Use this tag to add in any keywords people might use to find this result
sequence:
- type: str
unique: yes