]> gitweb @ CieloNegro.org - pci-nopaste.git/blob - misc/nopaste-config-schema.yml
fix bugs in rc.d/linux/pci-nopaste.in
[pci-nopaste.git] / misc / nopaste-config-schema.yml
1 # You can validate config files with this file by a tool named kwalify.
2 # http://www.kuwata-lab.com/kwalify/
3
4 # Usage:
5 #   kwalify -f nopaste-config-schema.yml <your-nopaste-config>
6
7 type: map
8 mapping:
9     "irc":
10         type: map
11         mapping:
12             "server"  : {required: true}
13             "port"    : {required: true, type: integer}
14             "nick"    : {required: true}
15             "username": {required: true}
16             "ircname" : {required: true}
17     "httpd":
18         type: map
19         mapping:
20             "port": {required: true, type: integer}
21     "db":
22         type: map
23         mapping:
24             "file": {required: true}
25     "channels":
26         type: seq
27         sequence:
28             - type: map
29               mapping:
30                   "name"       : {required: true}
31                   "id"         : {required: true, pattern: "/^[a-zA-Z0-9_\-.]+$/"}
32                   "charset"    : {desc: default is "ISO-8859-1"}
33                   "locale"     : {desc: default is "en"}
34                   "restriction":
35                       type: map
36                       mapping:
37                           "read":
38                               desc: default is "any"
39                               enum: &permission [op, halfop, voice, member, any]
40                           "write":
41                               desc: default is "any"
42                               enum: *permission