From 096066c5006d5917edeb65b351883a2bad033c8e Mon Sep 17 00:00:00 2001 From: Jan Musial Date: Wed, 7 May 2025 11:53:16 +0200 Subject: [PATCH 1/3] Update filter extenion json schema in client.py to be compliant with: https://docs.ogc.org/is/19-079r2/19-079r2.html#queryables --- .../extensions/stac_fastapi/extensions/core/filter/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/client.py b/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/client.py index 03ef96614..69435b2e3 100644 --- a/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/client.py +++ b/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/client.py @@ -23,7 +23,7 @@ async def get_queryables( https://github.com/radiantearth/stac-api-spec/tree/master/fragments/filter#queryables """ return { - "$schema": "https://json-schema.org/draft/2019-09/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.org/queryables", "type": "object", "title": "Queryables for Example STAC API", From 28375b37d827c2ae35e8eded878738a8870e7a93 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Mon, 12 May 2025 16:23:42 +0200 Subject: [PATCH 2/3] update BaseFiltersClient --- .../extensions/stac_fastapi/extensions/core/filter/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/client.py b/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/client.py index 69435b2e3..2ee59b770 100644 --- a/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/client.py +++ b/stac_fastapi/extensions/stac_fastapi/extensions/core/filter/client.py @@ -49,7 +49,7 @@ def get_queryables( https://github.com/stac-api-extensions/filter#queryables """ return { - "$schema": "https://json-schema.org/draft/2019-09/schema", + "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.org/queryables", "type": "object", "title": "Queryables for Example STAC API", From 515065964ced425fd75c2c574153207c517789f2 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Mon, 12 May 2025 16:27:00 +0200 Subject: [PATCH 3/3] update changelog --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 10ce79384..e0d1da3f7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,7 @@ - avoid future deprecation for pydantic.Field and use `json_schema_extra` instead of `openapi_examples` - use `orjson` based JSONResponse when available - changed from `AssertionError` to `HTTPException` for **bbox** parsing exceptions +- update `$schema` in Filter's extension client responses to match OGC Feature specification ### Added