Skip to content

Commit 1d2b7c1

Browse files
committed
added type property for catalogs and collections
Addresses the changes in radiantearth/stac-spec#971
1 parent 5a492ca commit 1d2b7c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pystac/catalog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ def to_dict(self, include_self_link=True):
366366
links = filter(lambda l: l.rel != 'self', links)
367367

368368
d = {
369+
'type': self.STAC_OBJECT_TYPE.value.title(),
369370
'id': self.id,
370371
'stac_version': pystac.get_stac_version(),
371372
'description': self.description,

0 commit comments

Comments
 (0)