Telegram/validation/warnings.json

47 lines
1.2 KiB
JSON
Raw Permalink Normal View History

2022-12-11 02:30:56 +02:00
{
"$jsonSchema": {
2022-12-21 13:26:05 +02:00
"required": [
"user",
"admin",
"date",
2023-04-02 17:44:46 +03:00
"reason",
"active",
"revoke_date"
2022-12-21 13:26:05 +02:00
],
"properties": {
"user": {
2023-04-02 17:44:46 +03:00
"bsonType": [
"int",
"long"
],
2022-12-21 13:26:05 +02:00
"description": "Telegram ID of user"
},
"admin": {
2023-04-02 17:44:46 +03:00
"bsonType": [
"int",
"long"
],
2022-12-21 13:26:05 +02:00
"description": "Telegram ID of admin"
},
"date": {
"bsonType": "date",
"description": "Date and time of getting"
},
"reason": {
"bsonType": "string",
"description": "Broken rule or admin's comment"
2023-04-02 17:44:46 +03:00
},
"active": {
"bsonType": "bool",
"description": "Whether warning is still present"
},
"revoke_date": {
"bsonType": [
"date",
"null"
],
"description": "Date when warning got inactive"
2022-12-21 13:26:05 +02:00
}
}
2022-12-11 02:30:56 +02:00
}
}