Closed
Description
Hi there! Just wondering if it is a deliberate decision that empty geometries don't pass validation because these constrained lists:
geojson-pydantic/geojson_pydantic/types.py
Lines 13 to 19 in 6a32302
e.g:
>>> from shapely.geometry import mapping, Polygon
>>> from geojson_pydantic import Polygon as PydanticPolygon
>>> PydanticPolygon.parse_obj(mapping(Polygon()))
pydantic.error_wrappers.ValidationError: 1 validation error for Polygon
coordinates
ensure this value has at least 1 items (type=value_error.list.min_items; limit_value=1)
Empty geometries seem to be permitted per the geojson spec
Metadata
Metadata
Assignees
Labels
No labels