Closed simonw closed 2 months ago
Here's the Sentry error:
Minimum test that triggers the bug:
def test_render_cell_not_confused_by_other_properties():
# https://github.com/simonw/datasette-leaflet-geojson/issues/24
value = json.dumps(
{
"type": {"type": "string"},
}
)
actual = render_cell(value)
Just got this error on a table page that didn't hold any GeoJSON. I think it's because that table has a
properties
column containing JSON that isn't a fit for GeoJSON.Table schema (from datasette-extract):
Example record: