Skip to content

Commit 00f5ca3

Browse files
robintwlossyrob
andauthored
Add collection field to default list of fields to include in output (#276)
* Add collection field to default list of fields to include in output * Update changelog * Linting Co-authored-by: Rob Emanuele <[email protected]>
1 parent 27e1345 commit 00f5ca3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Added
66

7+
* Added `collections` attribute to list of default fields to include, so that we satisfy the STAC API spec, which requires a `collections` attribute to be output when an item is part of a collection
78
### Removed
89

910
### Changed

stac_fastapi/extensions/stac_fastapi/extensions/core/fields.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class FieldsExtension(ApiExtension):
3838
"links",
3939
"assets",
4040
"properties.datetime",
41+
"collection",
4142
}
4243
)
4344

0 commit comments

Comments
 (0)