diff --git a/validation/warnings.json b/validation/warnings.json index 026bd47..6712a4a 100644 --- a/validation/warnings.json +++ b/validation/warnings.json @@ -1,6 +1,28 @@ { "$jsonSchema": { - "required": [], - "properties": {} + "required": [ + "user", + "admin", + "date", + "reason" + ], + "properties": { + "user": { + "bsonType": ["int", "long"], + "description": "Telegram ID of user" + }, + "admin": { + "bsonType": ["int", "long"], + "description": "Telegram ID of admin" + }, + "date": { + "bsonType": "date", + "description": "Date and time of getting" + }, + "reason": { + "bsonType": "string", + "description": "Broken rule or admin's comment" + } + } } } \ No newline at end of file