Initial commit
This commit is contained in:
45
validation/locations.json
Normal file
45
validation/locations.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"$jsonSchema": {
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"location",
|
||||
"country",
|
||||
"timezone"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"bsonType": [
|
||||
"int",
|
||||
"long"
|
||||
],
|
||||
"description": "Unique ID of the location"
|
||||
},
|
||||
"name": {
|
||||
"bsonType": [
|
||||
"string"
|
||||
],
|
||||
"description": "Location's name"
|
||||
},
|
||||
"location": {
|
||||
"bsonType": [
|
||||
"array"
|
||||
],
|
||||
"description": "Longitude and latitude of the location"
|
||||
},
|
||||
"country": {
|
||||
"bsonType": [
|
||||
"int",
|
||||
"long"
|
||||
],
|
||||
"description": "Location's country ID"
|
||||
},
|
||||
"timezone": {
|
||||
"bsonType": [
|
||||
"string"
|
||||
],
|
||||
"description": "Location's timezone according to ISO 8601"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user