forked from Flaez/acceptbitcoincash-staging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
websites_schema.yml
62 lines (62 loc) · 1.6 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
type: map
mapping:
"websites":
type: seq
sequence:
- type: map
name: Website
mapping:
"name":
type: str
required: yes
unique: yes
"url":
type: str
pattern: /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,8}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/
required: yes
unique: yes
"img":
type: str
pattern: /\.png$/i
"bch":
type: bool
required: yes
pattern: /(true|false)/
"btc":
type: bool
pattern: /(true|false)/
"othercrypto":
type: bool
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
pattern: /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,8}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/
"lang":
type: str
"region":
type: str
pattern: /(\w){2}$/
"country":
type: str
pattern: /(\w){2}$/
"state":
type: str
"city":
type: str