Skip to content

Commit bda2412

Browse files
update all conformance classes to 1.0.0-rc.1 and fix several extension cc URIs with extra forward-slash (#383)
* update all conformance classes to 1.0.0-rc.1 and fix several extension cc URIs with extra forward-slash * add collections conformance class, update Changelog Co-authored-by: Nathan Zimmerman <[email protected]>
1 parent 77b368f commit bda2412

File tree

8 files changed

+31
-26
lines changed

8 files changed

+31
-26
lines changed

CHANGES.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,30 @@
22

33
## Unreleased
44

5-
* Update error response payloads to match the API spec. ([#361](https://github.com/stac-utils/stac-fastapi/pull/361))
6-
75
### Added
86

97
* Add hook to allow adding dependencies to routes. ([#295](https://github.com/stac-utils/stac-fastapi/pull/295))
8+
* Add STAC API - Collections conformance class. ([383](https://github.com/stac-utils/stac-fastapi/pull/383))
109

1110
### Changed
1211

1312
* Update FastAPI requirement to allow version >=0.73 ([#337](https://github.com/stac-utils/stac-fastapi/pull/337))
1413
* Bump version of PGStac to 0.4.5 ([#346](https://github.com/stac-utils/stac-fastapi/pull/346))
1514
* Add support for PGStac Backend to use PyGeofilter to convert Get Request with cql2-text into cql2-json to send to PGStac backend ([#346](https://github.com/stac-utils/stac-fastapi/pull/346))
15+
* Updated all conformance classes to 1.0.0-rc.1. ([383](https://github.com/stac-utils/stac-fastapi/pull/383))
1616
* Bulk Transactions object Items iterator now returns the Item objects rather than the string IDs of the Item objects
1717
([#355](https://github.com/stac-utils/stac-fastapi/issues/355))
1818
* docker-compose now runs uvicorn with hot-reloading enabled
1919

2020
### Removed
2121

2222
### Fixed
23+
2324
* Bumped uvicorn version to 0.17 (from >=0.12, <=0.14) to resolve security vulnerability related to websockets dependency version ([#343](https://github.com/stac-utils/stac-fastapi/pull/343))
2425
* `AttributeError` and/or missing properties when requesting the complete `properties`-field in searches. Added test. ([#339](https://github.com/stac-utils/stac-fastapi/pull/339))
2526
* Fixes issues (and adds tests) for issues caused by regression in pgstac ([#345](https://github.com/stac-utils/stac-fastapi/issues/345)
27+
* Update error response payloads to match the API spec. ([#361](https://github.com/stac-utils/stac-fastapi/pull/361))
28+
* Fixed stray `/` before the `#` in several extension conformance class strings ([383](https://github.com/stac-utils/stac-fastapi/pull/383))
2629
* SQLAlchemy backend bulk item insert now works ([#356]https://github.com/stac-utils/stac-fastapi/issues/356))
2730

2831
## [2.3.0]

stac_fastapi/extensions/stac_fastapi/extensions/core/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class ContextExtension(ApiExtension):
1818
"""
1919

2020
conformance_classes: List[str] = attr.ib(
21-
factory=lambda: ["https://api.stacspec.org/v1.0.0-beta.4/item-search/#context"]
21+
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.1/item-search#context"]
2222
)
2323
schema_href: Optional[str] = attr.ib(
24-
default="https://github.com/raw/radiantearth/stac-api-spec/v1.0.0-beta.4/fragments/context/json-schema/schema.json"
24+
default="https://github.com/raw/radiantearth/stac-api-spec/v1.0.0-rc.1/fragments/context/json-schema/schema.json"
2525
)
2626

2727
def register(self, app: FastAPI) -> None:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class FieldsExtension(ApiExtension):
3030
POST = FieldsExtensionPostRequest
3131

3232
conformance_classes: List[str] = attr.ib(
33-
factory=lambda: ["https://api.stacspec.org/v1.0.0-beta.4/item-search/#fields"]
33+
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.1/item-search#fields"]
3434
)
3535
default_includes: Set[str] = attr.ib(
3636
factory=lambda: {

stac_fastapi/extensions/stac_fastapi/extensions/core/filter/filter.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@
1818
class FilterConformanceClasses(str, Enum):
1919
"""Conformance classes for the Filter extension.
2020
21-
See https://github.com/radiantearth/stac-api-spec/tree/v1.0.0-beta.4/fragments/filter
21+
See https://github.com/radiantearth/stac-api-spec/tree/v1.0.0-rc.1/fragments/filter
2222
"""
2323

24-
FILTER = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:filter"
24+
FILTER = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:filter"
2525
ITEM_SEARCH_FILTER = (
26-
"https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:item-search-filter"
26+
"https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:item-search-filter"
2727
)
28-
CQL_TEXT = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:cql-text"
29-
CQL_JSON = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:cql-json"
30-
BASIC_CQL = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:basic-cql"
31-
BASIC_SPATIAL_OPERATORS = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:basic-spatial-operators"
32-
BASIC_TEMPORAL_OPERATORS = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:basic-temporal-operators"
33-
ENHANCED_COMPARISON_OPERATORS = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:enhanced-comparison-operators"
34-
ENHANCED_SPATIAL_OPERATORS = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:enhanced-spatial-operators"
35-
ENHANCED_TEMPORAL_OPERATORS = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:enhanced-temporal-operators"
36-
FUNCTIONS = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:functions"
37-
ARITHMETIC = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:arithmetic"
38-
ARRAYS = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:arrays"
39-
QUERYABLE_SECOND_OPERAND = "https://api.stacspec.org/v1.0.0-beta.4/item-search#filter:queryable-second-operand"
28+
CQL_TEXT = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:cql-text"
29+
CQL_JSON = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:cql-json"
30+
BASIC_CQL = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:basic-cql"
31+
BASIC_SPATIAL_OPERATORS = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:basic-spatial-operators"
32+
BASIC_TEMPORAL_OPERATORS = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:basic-temporal-operators"
33+
ENHANCED_COMPARISON_OPERATORS = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:enhanced-comparison-operators"
34+
ENHANCED_SPATIAL_OPERATORS = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:enhanced-spatial-operators"
35+
ENHANCED_TEMPORAL_OPERATORS = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:enhanced-temporal-operators"
36+
FUNCTIONS = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:functions"
37+
ARITHMETIC = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:arithmetic"
38+
ARRAYS = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:arrays"
39+
QUERYABLE_SECOND_OPERAND = "https://api.stacspec.org/v1.0.0-rc.1/item-search#filter:queryable-second-operand"
4040

4141

4242
@attr.s

stac_fastapi/extensions/stac_fastapi/extensions/core/query/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class QueryExtension(ApiExtension):
2323
POST = QueryExtensionPostRequest
2424

2525
conformance_classes: List[str] = attr.ib(
26-
factory=lambda: ["https://api.stacspec.org/v1.0.0-beta.4/item-search/#query"]
26+
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.1/item-search#query"]
2727
)
2828
schema_href: Optional[str] = attr.ib(default=None)
2929

stac_fastapi/extensions/stac_fastapi/extensions/core/sort/sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SortExtension(ApiExtension):
2323
POST = SortExtensionPostRequest
2424

2525
conformance_classes: List[str] = attr.ib(
26-
factory=lambda: ["https://api.stacspec.org/v1.0.0-beta.4/item-search/#sort"]
26+
factory=lambda: ["https://api.stacspec.org/v1.0.0-rc.1/item-search#sort"]
2727
)
2828
schema_href: Optional[str] = attr.ib(default=None)
2929

stac_fastapi/extensions/stac_fastapi/extensions/core/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class TransactionExtension(ApiExtension):
3838
settings: ApiSettings = attr.ib()
3939
conformance_classes: List[str] = attr.ib(
4040
factory=lambda: [
41-
"https://api.stacspec.org/v1.0.0-beta.4/ogcapi-features/extensions/transaction/",
41+
"https://api.stacspec.org/v1.0.0-rc.1/ogcapi-features/extensions/transaction",
4242
"http://www.opengis.net/spec/ogcapi-features-4/1.0/conf/simpletx",
4343
]
4444
)

stac_fastapi/types/stac_fastapi/types/conformance.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
class STACConformanceClasses(str, Enum):
66
"""Conformance classes for the STAC API spec."""
77

8-
CORE = "https://api.stacspec.org/v1.0.0-beta.4/core"
9-
OGC_API_FEAT = "https://api.stacspec.org/v1.0.0-beta.4/ogcapi-features"
10-
ITEM_SEARCH = "https://api.stacspec.org/v1.0.0-beta.4/item-search"
8+
CORE = "https://api.stacspec.org/v1.0.0-rc.1/core"
9+
OGC_API_FEAT = "https://api.stacspec.org/v1.0.0-rc.1/ogcapi-features"
10+
COLLECTIONS = "https://api.stacspec.org/v1.0.0-rc.1/collections"
11+
ITEM_SEARCH = "https://api.stacspec.org/v1.0.0-rc.1/item-search"
1112

1213

1314
class OAFConformanceClasses(str, Enum):
@@ -21,6 +22,7 @@ class OAFConformanceClasses(str, Enum):
2122
BASE_CONFORMANCE_CLASSES = [
2223
STACConformanceClasses.CORE,
2324
STACConformanceClasses.OGC_API_FEAT,
25+
STACConformanceClasses.COLLECTIONS,
2426
STACConformanceClasses.ITEM_SEARCH,
2527
OAFConformanceClasses.CORE,
2628
OAFConformanceClasses.OPEN_API,

0 commit comments

Comments
 (0)