Skip to content

Commit

Permalink
Enable validation on root stac catalog
Browse files Browse the repository at this point in the history
... and fix the missing field (neede for 1.0.0)!
  • Loading branch information
jeremyh committed Sep 20, 2021
1 parent 52b2d09 commit 0af911c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cubedash/_stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def root():
return _stac_response(
dict(
**stac_endpoint_information(),
type="Catalog",
links=[
dict(
title="Collections",
Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ def test_huge_page_request(stac_client: FlaskClient):

def test_stac_collections(stac_client: FlaskClient):
response = get_json(stac_client, "/stac")
_CATALOG_SCHEMA.validate(response)

assert response["id"] == "odc-explorer", "Expected default unconfigured endpoint id"
assert (
Expand Down

0 comments on commit 0af911c

Please sign in to comment.