Skip to content

Commit 9194383

Browse files
committed
updated default artifact_type when migrating
1 parent 3f37e95 commit 9194383

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
@@ -2338,7 +2338,10 @@ def migrate(props_obj: dict[str, Any]) -> None:
23382338

23392339
# add new REQUIRED proretie mlm:artifact_type to asset
23402340
if "mlm:model" in obj["assets"][asset]["roles"]:
2341-
obj["assets"][asset]["mlm:artifact_type"] = "asdf"
2341+
obj["assets"][asset]["mlm:artifact_type"] = (
2342+
"Placeholder string to satisfy requirements when migrating "
2343+
"from mlm v1.3 to v1.4"
2344+
)
23422345

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

0 commit comments

Comments
 (0)