Added collection validation

This commit is contained in:
2023-08-18 20:43:22 +02:00
parent 24a2837f34
commit 4a2e15c6e7

24
validation/users.json Normal file
View File

@@ -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 "
}
}
}
}