Skip to content

Commit 4e99310

Browse files
committed
Ensure stac_extensions is a list for consistency
1 parent 9d1ffee commit 4e99310

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pystac/serialization/migrate.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ def migrate_to_latest(
202202
migration_fn(result, version, info)
203203
result["stac_extensions"].remove(ext)
204204

205-
result["stac_version"] = STACVersion.DEFAULT_STAC_VERSION
205+
result["stac_version"] = STACVersion.DEFAULT_STAC_VERSION
206+
else:
207+
# Ensure stac_extensions property for consistency
208+
if "stac_extensions" not in result:
209+
result["stac_extensions"] = []
206210

207211
return result

0 commit comments

Comments
 (0)