diff --git a/CHANGES.md b/CHANGES.md index 10ce7938..e0d1da3f 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 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 03ef9661..2ee59b77 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", @@ -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",