Skip to content

Commit

Permalink
add items link to inferred link relations (#634) (#640)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Sarago <vincent.sarago@gmail.com>
  • Loading branch information
StijnCaerts and vincentsarago authored Apr 9, 2024
1 parent 11e9c0f commit 313486b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Changed

* Add `items` link to inferred link relations ([#634](https://github.com/stac-utils/stac-fastapi/issues/634))
* Make sure FastAPI uses Pydantic validation and serialization by not wrapping endpoint output with a Response object ([#650](https://github.com/stac-utils/stac-fastapi/pull/650))

### Removed
Expand Down
2 changes: 1 addition & 1 deletion stac_fastapi/types/stac_fastapi/types/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# These can be inferred from the item/collection so they aren't included in the database
# Instead they are dynamically generated when querying the database using the
# classes defined below
INFERRED_LINK_RELS = ["self", "item", "parent", "collection", "root"]
INFERRED_LINK_RELS = ["self", "item", "parent", "collection", "root", "items"]


def filter_links(links: List[Dict]) -> List[Dict]:
Expand Down

0 comments on commit 313486b

Please sign in to comment.