{ "$jsonSchema": { "required": [ "user", "admin", "date", "reason", "active", "revoke_date" ], "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" }, "active": { "bsonType": "bool", "description": "Whether warning is still present" }, "revoke_date": { "bsonType": [ "date", "null" ], "description": "Date when warning got inactive" } } } }