diff --git a/validation/users.json b/validation/users.json new file mode 100644 index 0000000..6560dab --- /dev/null +++ b/validation/users.json @@ -0,0 +1,24 @@ +{ + "$jsonSchema": { + "required": [ + "id", + "locale" + ], + "properties": { + "user": { + "bsonType": [ + "int", + "long" + ], + "description": "Telegram ID of user" + }, + "locale": { + "bsonType": [ + "string", + "null" + ], + "description": "Preferred messages language according to " + } + } + } +} \ No newline at end of file