This repository has been archived on 2024-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
TelegramBot/validation/entries.json
2023-08-27 22:43:16 +02:00

37 lines
940 B
JSON

{
"$jsonSchema": {
"required": [
"locations",
"garbage_type",
"date"
],
"properties": {
"locations": {
"bsonType": [
"array"
],
"description": "IDs of the locations"
},
"garbage_type": {
"bsonType": [
"int"
],
"enum": [
0,
1,
2,
3,
4,
5
],
"description": "Enum of garbage type. 0 - bio, 1 - plastic, 2 - paper, 3 - general, 4 - glass, 5 - unspecified"
},
"date": {
"bsonType": [
"date"
],
"description": "Date of the collection"
}
}
}
}