Non-number members in coordinates ignored
Closed this issue · 3 comments
kkaefer commented
The spec says that all members of a position array must be numbers, but this code doesn't check that. It also doesn't check that there are at least two members.
{
"type": "Point",
"coordinates": [ 1, 2, "f" ]
}
tmcw commented
Hm, are you sure? Just added a test case with this input and it found the error.
tmcw commented
Both of these constraints are enforced here: https://github.com/mapbox/geojsonhint/blob/master/index.js#L73-L95