geojsonhint
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -0,1 +1,6 @@ | ||
## 0.3.4 | ||
* Tolerates `id` properties as numbers as well as strings, to match | ||
the actual specification. | ||
## 0.3.3 | ||
@@ -2,0 +7,0 @@ |
10
index.js
@@ -247,4 +247,10 @@ var jsonlint = require('jsonlint-lines'); | ||
bbox(_); | ||
if (_.id !== undefined) { | ||
requiredProperty(_, 'id', 'string'); | ||
// https://github.com/geojson/draft-geojson/blob/master/middle.mkd#feature-object | ||
if (_.id !== undefined && | ||
typeof _.id !== 'string' && | ||
typeof _.id !== 'number') { | ||
errors.push({ | ||
message: 'Feature "id" property must have a string or number value', | ||
line: _.__line__ | ||
}); | ||
} | ||
@@ -251,0 +257,0 @@ if (_.type !== 'Feature') { |
{ | ||
"name": "geojsonhint", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "validate and sanity-check geojson files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
151145
1512