mapbox/geojsonhint

Define behavior for SHOULD / SHOULD NOT rules

Closed this issue · 1 comments

RFC7946 says:

Implementations SHOULD NOT extend positions beyond three elements because the semantics of extra elements are unspecified and ambiguous.

And RFC2119 says:

  1. SHOULD NOT This phrase, or the phrase "NOT RECOMMENDED" mean that there may exist valid reasons in particular circumstances when the particular behavior is acceptable or even useful, but the full implications should be understood and the case carefully weighed before implementing any behavior described with this label.

So I would assume that having positions with more than three elements would be acceptable "in particular circumstances", but geojsonhint refuses them with an error.

I think this should either be a warning, or it should be made clear that geojsonhint interprets violations SHOULD / SHOULD NOT rules of the spec as errors.

tmcw commented

This should be made a warning: we already make the coordinate precision warning level: message and we should make the position extension warning a message as well.