Initial commit
This commit is contained in:
37
validation/entries.json
Normal file
37
validation/entries.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user