From 28352e7c8932ee25f72c1eb74fd8516cd2a7ed73 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Wed, 21 Aug 2024 13:23:35 -0600 Subject: [PATCH 1/2] docs: collection rel type can be for anything --- pystac/link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystac/link.py b/pystac/link.py index 47bd630aa..f88061090 100644 --- a/pystac/link.py +++ b/pystac/link.py @@ -455,7 +455,7 @@ def parent(cls: type[L], c: Catalog) -> L: @classmethod def collection(cls: type[L], c: Collection) -> L: - """Creates a link to an item's Collection.""" + """Creates a link to a Collection.""" return cls(pystac.RelType.COLLECTION, c, media_type=pystac.MediaType.JSON) @classmethod From 6541a83ab16b1e30e9f4b0ba1a591ff80a15c9ca Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Wed, 21 Aug 2024 13:30:50 -0600 Subject: [PATCH 2/2] chore: update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37056b60c..755ae86ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Updated classification extension to v2.0.0 ([#1359](https://github.com/stac-utils/pystac/pull/1359)) - Update docstring of `name` argument to `Classification.apply` and `Classification.create` to agree with extension specification ([#1356](https://github.com/stac-utils/pystac/pull/1356)) - Add example of custom `StacIO` for Azure Blob Storage to docs ([#1372](https://github.com/stac-utils/pystac/pull/1372)) +- Noted that collection links can be used in non-item objects in STAC v1.1.0 ([#1393](https://github.com/stac-utils/pystac/pull/1393)) ### Fixed