forked from ClouDNS/twofactorauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
websites_schema.yml
60 lines (60 loc) · 1.52 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
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,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/
required: yes
unique: yes
"img":
type: str
required: yes
"tfa":
type: bool
required: yes
"software":
type: bool
pattern: /true/
"hardware":
type: bool
pattern: /true/
"sms":
type: bool
pattern: /true/
"phone":
type: bool
pattern: /true/
"email":
type: bool
pattern: /true/
"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,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/
"lang":
type: str