Caption and category added for spoilers

This commit is contained in:
2023-01-05 14:34:02 +01:00
parent 6e44177907
commit 5b28f9f588
8 changed files with 94 additions and 37 deletions

View File

@@ -3,10 +3,12 @@
"required": [
"user",
"completed",
"category",
"description",
"photo",
"video",
"animation",
"caption",
"text"
],
"properties": {
@@ -18,6 +20,11 @@
"bsonType": "bool",
"description": "Whether spoiler is a completed one"
},
"category": {
"bsonType": ["string", "null"],
"enum": ["nsfw", "deanon", "other"],
"description": "Spoiler's category"
},
"description": {
"bsonType": ["string", "null"],
"description": "Spoiler's description"
@@ -34,6 +41,10 @@
"bsonType": ["string", "null"],
"description": "Spoilered animation/GIF"
},
"caption": {
"bsonType": ["string", "null"],
"description": "Spoilered caption for media"
},
"text": {
"bsonType": ["string", "null"],
"description": "Spoilered text"