Skip to content

Update filter extenion json schema in client.py #836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down