Skip to content

Commit 9aebd40

Browse files
committed
collection or collection_id
1 parent a5eccfa commit 9aebd40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/stac_api_validator/validations.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,10 @@ def validate_browseable(
743743
link["href"],
744744
errors,
745745
Context.BROWSEABLE,
746-
params={"ids": item.id, "collections": item.collection},
746+
params={
747+
"ids": item.id,
748+
"collections": getattr(item, "collection", None) or getattr(item, "collection_id", None)
749+
},
747750
r_session=r_session,
748751
)
749752
if body and len(body.get("features", [])) != 1:

0 commit comments

Comments
 (0)