diff --git a/validation/users.json b/validation/users.json index 9a7a19d..7cb76af 100644 --- a/validation/users.json +++ b/validation/users.json @@ -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" } }