mapbox / Hecate

Fast Geospatial Feature Storage API
MIT License
254 stars 38 forks source link

Consistent Import Errors #80

Closed ingalls closed 6 years ago

ingalls commented 6 years ago

At the moment import errors are a string value with no consistent formatting.

This standardizes import errors to the following format:

{
    "id": 1, //falsy if creating a new feature
    "error": "I am a human readable error message",
    "feat": {
        //GeoJSON Feature that caused the error in the first place
    }
}

cc/ @mapbox/geocoding-gang