WIP: Analytics validation
This commit is contained in:
parent
64630e0ab7
commit
ffb3153a47
54
validation/analytics.json
Normal file
54
validation/analytics.json
Normal file
@ -0,0 +1,54 @@
|
||||
{
|
||||
"$jsonSchema": {
|
||||
"required": [
|
||||
"user",
|
||||
"channel",
|
||||
"content",
|
||||
"stickers",
|
||||
"attachments"
|
||||
],
|
||||
"properties": {
|
||||
"user": {
|
||||
"bsonType": "long",
|
||||
"description": "Discord ID of user"
|
||||
},
|
||||
"channel": {
|
||||
"bsonType": "int",
|
||||
"description": "Discord ID of a channel"
|
||||
},
|
||||
"content": {
|
||||
"bsonType": ["null", "string"],
|
||||
"description": "Text of the message"
|
||||
},
|
||||
"stickers": {
|
||||
"bsonType": "array",
|
||||
"items": {
|
||||
"bsonType": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"format",
|
||||
"url"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"bsonType": "int"
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string"
|
||||
},
|
||||
"format": {
|
||||
"bsonType": "array"
|
||||
},
|
||||
"user": {
|
||||
"bsonType": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"attachments": {
|
||||
"bsonType": "array"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user