WIP: Validation

This commit is contained in:
Profitroll 2023-05-08 15:45:16 +02:00
parent 786bc95eeb
commit daae3db305
2 changed files with 42 additions and 0 deletions

24
validation/users.json Normal file
View 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
View 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"
}
}
}
}