Skip to content

Commit 76e8d64

Browse files
jaysnmlossyrob
andauthored
Enable context extension by default (#211)
* enable search context extension #207 * advertise conformance to STAC Spec 1.0.0-beta.2 * did run "make test" to let isort do its thing * Enable `ContextExtension` by default Co-authored-by: Rob Emanuele <[email protected]>
1 parent 9ea1f2a commit 76e8d64

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
### Fixed
1515

16-
* Content-type response headers for the /search endpoint now reflect the geojson response expected in the STAC api spec ([#220](https://github.com/stac-utils/stac-fastapi/issues/220)
16+
* Enabled `ContextExtension` by default ([#207](https://github.com/stac-utils/stac-fastapi/issues/207))
17+
* Content-type response headers for the /search endpoint now reflect the geojson response expected in the STAC api spec ([#220](https://github.com/stac-utils/stac-fastapi/issues/220))
1718
* The minimum `limit` value for searches is now 1 ([#296](https://github.com/stac-utils/stac-fastapi/pull/296))
1819
* Links stored with Collections and Items (e.g. license links) are now returned with those STAC objects ([#282](https://github.com/stac-utils/stac-fastapi/pull/282))
1920
* Content-type response headers for the /api endpoint now reflect those expected in the STAC api spec ([#287](https://github.com/stac-utils/stac-fastapi/pull/287))

stac_fastapi/pgstac/stac_fastapi/pgstac/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from stac_fastapi.api.app import StacApi
55
from stac_fastapi.api.models import create_get_request_model, create_post_request_model
66
from stac_fastapi.extensions.core import (
7+
ContextExtension,
78
FieldsExtension,
89
SortExtension,
910
TokenPaginationExtension,
@@ -27,6 +28,7 @@
2728
SortExtension(),
2829
FieldsExtension(),
2930
TokenPaginationExtension(),
31+
ContextExtension(),
3032
]
3133

3234
post_request_model = create_post_request_model(extensions, base_model=PgstacSearch)

stac_fastapi/sqlalchemy/stac_fastapi/sqlalchemy/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from stac_fastapi.api.app import StacApi
33
from stac_fastapi.api.models import create_get_request_model, create_post_request_model
44
from stac_fastapi.extensions.core import (
5+
ContextExtension,
56
FieldsExtension,
67
SortExtension,
78
TokenPaginationExtension,
@@ -26,6 +27,7 @@
2627
QueryExtension(),
2728
SortExtension(),
2829
TokenPaginationExtension(),
30+
ContextExtension(),
2931
]
3032

3133
post_request_model = create_post_request_model(extensions)

0 commit comments

Comments
 (0)