Skip to content

Commit 8f63dfb

Browse files
committed
updated default artifact_type when migrating
1 parent f58cc6a commit 8f63dfb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pystac/extensions/mlm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,10 @@ def migrate(props_obj: dict[str, Any]) -> None:
23122312

23132313
# add new REQUIRED proretie mlm:artifact_type to asset
23142314
if "mlm:model" in obj["assets"][asset]["roles"]:
2315-
obj["assets"][asset]["mlm:artifact_type"] = "asdf"
2315+
obj["assets"][asset]["mlm:artifact_type"] = (
2316+
"Placeholder string to satisfy requirements when migrating "
2317+
"from mlm v1.3 to v1.4"
2318+
)
23162319

23172320
def migrate(
23182321
self, obj: dict[str, Any], version: STACVersionID, info: STACJSONDescription

0 commit comments

Comments
 (0)