WIP: Validation
This commit is contained in:
parent
786bc95eeb
commit
daae3db305
24
validation/users.json
Normal file
24
validation/users.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"$jsonSchema": {
|
||||
"required": [
|
||||
"user",
|
||||
"customrole",
|
||||
"customchannel"
|
||||
|
||||
],
|
||||
"properties": {
|
||||
"user": {
|
||||
"bsonType": "long",
|
||||
"description": "Discord ID of user"
|
||||
},
|
||||
"customrole": {
|
||||
"bsonType": ["null", "long"],
|
||||
"description": "Discord ID of custom role or 'null' if not set"
|
||||
},
|
||||
"customchannel": {
|
||||
"bsonType": ["null", "long"],
|
||||
"description": "Discord ID of custom channel or 'null' if not set"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
validation/warnings.json
Normal file
18
validation/warnings.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"$jsonSchema": {
|
||||
"required": [
|
||||
"user",
|
||||
"warns"
|
||||
],
|
||||
"properties": {
|
||||
"user": {
|
||||
"bsonType": "long",
|
||||
"description": "Discord ID of user"
|
||||
},
|
||||
"warns": {
|
||||
"bsonType": "int",
|
||||
"description": "Number of warnings on count"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user