Slightly improved structure

This commit is contained in:
Profitroll 2022-12-11 19:52:38 +01:00
parent b185dff664
commit 3aefe710e5

View File

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