Skip to content

Commit b9220b4

Browse files
Update filter extenion json schema in client.py (#836)
* Update filter extenion json schema in client.py to be compliant with: https://docs.ogc.org/is/19-079r2/19-079r2.html#queryables * update BaseFiltersClient * update changelog --------- Co-authored-by: vincentsarago <[email protected]>
1 parent fc44bf3 commit b9220b4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- avoid future deprecation for pydantic.Field and use `json_schema_extra` instead of `openapi_examples`
88
- use `orjson` based JSONResponse when available
99
- changed from `AssertionError` to `HTTPException` for **bbox** parsing exceptions
10+
- update `$schema` in Filter's extension client responses to match OGC Feature specification
1011

1112
### Added
1213

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def get_queryables(
2323
https://github.com/radiantearth/stac-api-spec/tree/master/fragments/filter#queryables
2424
"""
2525
return {
26-
"$schema": "https://json-schema.org/draft/2019-09/schema",
26+
"$schema": "https://json-schema.org/draft/2020-12/schema",
2727
"$id": "https://example.org/queryables",
2828
"type": "object",
2929
"title": "Queryables for Example STAC API",
@@ -49,7 +49,7 @@ def get_queryables(
4949
https://github.com/stac-api-extensions/filter#queryables
5050
"""
5151
return {
52-
"$schema": "https://json-schema.org/draft/2019-09/schema",
52+
"$schema": "https://json-schema.org/draft/2020-12/schema",
5353
"$id": "https://example.org/queryables",
5454
"type": "object",
5555
"title": "Queryables for Example STAC API",

0 commit comments

Comments
 (0)