Initial commit
This commit is contained in:
58
validation/users.json
Normal file
58
validation/users.json
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"$jsonSchema": {
|
||||
"required": [
|
||||
"id",
|
||||
"locale",
|
||||
"enabled",
|
||||
"location",
|
||||
"offset",
|
||||
"time_hour",
|
||||
"time_minute"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"bsonType": [
|
||||
"int",
|
||||
"long"
|
||||
],
|
||||
"description": "Telegram ID of user"
|
||||
},
|
||||
"locale": {
|
||||
"bsonType": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
"description": "Preferred language of strings"
|
||||
},
|
||||
"enabled": {
|
||||
"bsonType": "bool",
|
||||
"description": "Whether notifications are enabled"
|
||||
},
|
||||
"location": {
|
||||
"bsonType": [
|
||||
"int",
|
||||
"long"
|
||||
],
|
||||
"description": "ID of user's location"
|
||||
},
|
||||
"offset": {
|
||||
"bsonType": [
|
||||
"int"
|
||||
],
|
||||
"description": "Offset between event and notification in days"
|
||||
},
|
||||
"time_hour": {
|
||||
"bsonType": [
|
||||
"int"
|
||||
],
|
||||
"description": "Hour of notifications"
|
||||
},
|
||||
"time_minute": {
|
||||
"bsonType": [
|
||||
"int"
|
||||
],
|
||||
"description": "Minute of notifications"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user