2023-01-05 11:49:22 +02:00
|
|
|
{
|
|
|
|
"$jsonSchema": {
|
|
|
|
"required": [
|
|
|
|
"user",
|
|
|
|
"completed",
|
2023-01-05 15:34:02 +02:00
|
|
|
"category",
|
2023-01-05 11:49:22 +02:00
|
|
|
"description",
|
|
|
|
"photo",
|
|
|
|
"video",
|
2023-01-10 13:11:29 +02:00
|
|
|
"audio",
|
2023-01-05 11:49:22 +02:00
|
|
|
"animation",
|
2023-01-05 22:15:34 +02:00
|
|
|
"document",
|
2023-01-05 15:34:02 +02:00
|
|
|
"caption",
|
2023-01-05 11:49:22 +02:00
|
|
|
"text"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"user": {
|
|
|
|
"bsonType": ["int", "long"],
|
|
|
|
"description": "Telegram ID of user"
|
|
|
|
},
|
|
|
|
"completed": {
|
|
|
|
"bsonType": "bool",
|
|
|
|
"description": "Whether spoiler is a completed one"
|
|
|
|
},
|
2023-01-05 15:34:02 +02:00
|
|
|
"category": {
|
|
|
|
"bsonType": ["string", "null"],
|
|
|
|
"enum": ["nsfw", "deanon", "other"],
|
|
|
|
"description": "Spoiler's category"
|
|
|
|
},
|
2023-01-05 11:49:22 +02:00
|
|
|
"description": {
|
|
|
|
"bsonType": ["string", "null"],
|
|
|
|
"description": "Spoiler's description"
|
|
|
|
},
|
|
|
|
"photo": {
|
|
|
|
"bsonType": ["string", "null"],
|
|
|
|
"description": "Spoilered photo"
|
|
|
|
},
|
|
|
|
"video": {
|
|
|
|
"bsonType": ["string", "null"],
|
|
|
|
"description": "Spoilered video"
|
|
|
|
},
|
2023-01-10 13:11:29 +02:00
|
|
|
"audio": {
|
|
|
|
"bsonType": ["string", "null"],
|
|
|
|
"description": "Spoilered audio"
|
|
|
|
},
|
2023-01-05 11:49:22 +02:00
|
|
|
"animation": {
|
|
|
|
"bsonType": ["string", "null"],
|
|
|
|
"description": "Spoilered animation/GIF"
|
|
|
|
},
|
2023-01-05 22:15:34 +02:00
|
|
|
"document": {
|
|
|
|
"bsonType": ["string", "null"],
|
|
|
|
"description": "Spoilered document/file"
|
|
|
|
},
|
2023-01-05 15:34:02 +02:00
|
|
|
"caption": {
|
|
|
|
"bsonType": ["string", "null"],
|
|
|
|
"description": "Spoilered caption for media"
|
|
|
|
},
|
2023-01-05 11:49:22 +02:00
|
|
|
"text": {
|
|
|
|
"bsonType": ["string", "null"],
|
|
|
|
"description": "Spoilered text"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|