forked from geneontology/go-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
groups.schema.yaml
40 lines (40 loc) · 1.08 KB
/
groups.schema.yaml
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
####
#### Use kwalify and this schema to validate the config files.
####
#### Examples:
#### kwalify -f ./metadata/groups.schema.yaml ./metadata/groups.yaml
#### kwalify -f ./metadata/groups.schema.yaml ./metadata/groups.yaml | grep INVALID; test $? -ne 0
####
type: seq
sequence:
- type: map
mapping:
"id":
type: str
required: true
unique: true
## Pattern lookahead to prevent trailing slashes.
pattern: /^(http(s?)\:\/\/\w[\/\.\-\:\w]+)(?<!\/)$/
"label":
type: str
required: true
unique: true
"shorthand":
type: str
required: false
unique: true
"active-from":
type: str
required: false
pattern: /^\d\d\d\d\-\d\d\-\d\d$/
"active-to":
type: str
required: false
pattern: /^\d\d\d\d\-\d\d\-\d\d$/
# "contacts":
# type: seq
# required: false
# sequence:
# - type: str
# ## Pattern lookahead to prevent trailing slashes.
# pattern: /^(http(s?)\:\/\/\w[\/\.\-\:\w]+)(?<!\/)$/