DB validation WIP
This commit is contained in:
parent
c0f6bd8b11
commit
12d6273c9a
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"required": [],
|
||||
"properties": {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"required": [],
|
||||
"properties": {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"required": [
|
||||
"origin",
|
||||
"origin.chat",
|
||||
"origin.id",
|
||||
"destination",
|
||||
"destination.chat",
|
||||
"destination.id"
|
||||
],
|
||||
"properties": {
|
||||
"origin": {
|
||||
"bsonType": "object"
|
||||
},
|
||||
"origin.chat": {
|
||||
"bsonType": ["int", "long"],
|
||||
"description": "Telegram ID of message's origin chat"
|
||||
},
|
||||
"origin.id": {
|
||||
"bsonType": ["int", "long"],
|
||||
"description": "ID of message in origin chat"
|
||||
},
|
||||
"destination": {
|
||||
"bsonType": "object"
|
||||
},
|
||||
"destination.chat": {
|
||||
"bsonType": ["int", "long"],
|
||||
"description": "Telegram ID of message's destination chat"
|
||||
},
|
||||
"destination.id": {
|
||||
"bsonType": ["int", "long"],
|
||||
"description": "ID of message in destination chat"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"required": [],
|
||||
"properties": {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"required": [
|
||||
"user",
|
||||
"link",
|
||||
"tg_name",
|
||||
"tg_phone",
|
||||
"tg_locale",
|
||||
"tg_username"
|
||||
],
|
||||
"properties": {
|
||||
"user": {
|
||||
"bsonType": ["int", "long"],
|
||||
"description": "Telegram ID of user"
|
||||
},
|
||||
"link": {
|
||||
"bsonType": "string",
|
||||
"description": "Invite link to destination group"
|
||||
},
|
||||
"tg_name": {
|
||||
"bsonType": "string",
|
||||
"description": "Telegram first name"
|
||||
},
|
||||
"tg_phone": {
|
||||
"bsonType": "string",
|
||||
"description": "Telegram phone number"
|
||||
},
|
||||
"tg_locale": {
|
||||
"bsonType": "string",
|
||||
"description": "Telegram locale"
|
||||
},
|
||||
"tg_username": {
|
||||
"bsonType": "string",
|
||||
"description": "Telegram username"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"$jsonSchema": {
|
||||
"required": [],
|
||||
"properties": {}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue