-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added bbox and crs schema validation
modified bbox.json schema to verify array of 4 items.
- Loading branch information
rafael.lopez.torres
committed
Nov 6, 2018
1 parent
91ab7c8
commit 1a12bed
Showing
6 changed files
with
120 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"id": "http://json-schema.org/geojson/bbox.json#", | ||
"description": "A bounding box as defined by GeoJSON", | ||
"type": "array", | ||
"items": { "type": "number" } | ||
} | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"id": "http://json-schema.org/geojson/bbox.json#", | ||
"description": "A bounding box as defined by GeoJSON", | ||
"type": [ | ||
"object", | ||
"null" | ||
], | ||
"required": [ | ||
"bbox" | ||
], | ||
"properties": { | ||
"bbox": { | ||
"id": "#/properties/bbox", | ||
"type": "array", | ||
"minItems": 4, | ||
"maxItems": 4, | ||
"title": "The Bbox Schema", | ||
"items": { | ||
"type": "number", | ||
"title": "The Items Schema" | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters