From caf6a14819b8554c25baeadefaae63e1769ba28c Mon Sep 17 00:00:00 2001 From: Robin Wilson Date: Wed, 12 Jan 2022 19:27:05 +0000 Subject: [PATCH] Change type of example collection to 'Collection' (#314) * Change type of example collection to 'Collection' The STAC API states that collections must have a 'type' of 'Collection', but the example data had a collection with a type of 'collection' which caused various other tools to fail when processing this collection (see https://github.com/stac-utils/pystac-client/issues/129) * Update Changelog Co-authored-by: Nathan Zimmerman --- CHANGES.md | 1 + stac_fastapi/testdata/joplin/collection.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index d6f0e6731..16f312334 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,7 @@ * Refactor to remove hardcoded search request models. Request models are now dynamically created based on the enabled extensions. ([#213](https://github.com/stac-utils/stac-fastapi/pull/213)) +* Change example data to use correct `type` for the example Joplin collection ([#314](https://github.com/stac-utils/stac-fastapi/pull/314)) * Changed the geometry type in the Item model from Polygon to Geometry. * Upgrade pgstac backend to use version 0.4.2 ([#321](https://github.com/stac-utils/stac-fastapi/pull/321)) diff --git a/stac_fastapi/testdata/joplin/collection.json b/stac_fastapi/testdata/joplin/collection.json index 5a5070851..992e64b9a 100644 --- a/stac_fastapi/testdata/joplin/collection.json +++ b/stac_fastapi/testdata/joplin/collection.json @@ -10,7 +10,7 @@ "title": "public domain" } ], - "type": "collection", + "type": "Collection", "extent": { "spatial": { "bbox": [ @@ -31,4 +31,4 @@ ] } } -} \ No newline at end of file +}