Slightly improved structure

This commit is contained in:
Profitroll 2022-12-11 19:52:38 +01:00
parent b185dff664
commit 3aefe710e5
1 changed files with 9 additions and 4 deletions

View File

@ -3,6 +3,7 @@
"required": [
"user",
"link",
"label",
"tg_name",
"tg_phone",
"tg_locale",
@ -14,23 +15,27 @@
"description": "Telegram ID of user"
},
"link": {
"bsonType": "string",
"bsonType": ["string", "null"],
"description": "Invite link to destination group"
},
"label": {
"bsonType": "string",
"description": "Label given by admins"
},
"tg_name": {
"bsonType": "string",
"description": "Telegram first name"
},
"tg_phone": {
"bsonType": "string",
"bsonType": ["string", "null"],
"description": "Telegram phone number"
},
"tg_locale": {
"bsonType": "string",
"bsonType": ["string", "null"],
"description": "Telegram locale"
},
"tg_username": {
"bsonType": "string",
"bsonType": ["string", "null"],
"description": "Telegram username"
}
}