forked from 2factorauth/twofactorauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
websites_schema.yml
45 lines (45 loc) · 1.25 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
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
pattern: /^[a-z0-9_\-\+]+\.png/
required: yes
"tfa":
type: seq
sequence:
- type: str
pattern: /^(sms|hardware|phone|software|email|u2f|totp|proprietary)+$/
"exception":
type: str
"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
pattern: /^[a-z]+$/