Skip to content

Commit

Permalink
Change bounds from object to GeoJSON (long, lat) array style
Browse files Browse the repository at this point in the history
  • Loading branch information
pickypg committed Jul 13, 2016
1 parent 7c8ec75 commit 6d8f803
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/server/config/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,7 @@ module.exports = () => Joi.object({
errorTileUrl: Joi.string().uri().optional(),
tms: Joi.boolean().optional(),
reuseTiles: Joi.boolean().optional(),
bounds: Joi.object({
southWest: Joi.object({
lat: Joi.number().required(),
lng: Joi.number().required()
}).required(),
northEast: Joi.object({
lat: Joi.number().required(),
lng: Joi.number().required()
}).required()
}).optional()
bounds: Joi.array().items(Joi.array().items(Joi.number()).min(2).required()).min(2).optional()
}).default()
}).default(),

Expand Down

0 comments on commit 6d8f803

Please sign in to comment.