37 lines
940 B
JSON
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"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|