File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/filter Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ class EsAsyncBaseFiltersClient(AsyncBaseFiltersClient):
21
21
async def get_queryables (
22
22
self , collection_id : Optional [str ] = None , ** kwargs
23
23
) -> Dict [str , Any ]:
24
- request : Optional [Request ] = kwargs .get ("request" ).url
25
24
"""Get the queryables available for the given collection_id.
26
25
27
26
If collection_id is None, returns the intersection of all
@@ -39,9 +38,11 @@ async def get_queryables(
39
38
Returns:
40
39
Dict[str, Any]: A dictionary containing the queryables for the given collection.
41
40
"""
41
+ request : Optional [Request ] = kwargs .get ("request" )
42
+ url_str : Optional [str ] = str (request .url ) if request else ""
42
43
queryables : Dict [str , Any ] = {
43
- "$schema" : "https://json-schema.org/draft-07/schema# " ,
44
- "$id" : f"{ request !s } " ,
44
+ "$schema" : "https://json-schema.org/draft-07/schema" ,
45
+ "$id" : f"{ url_str } " ,
45
46
"type" : "object" ,
46
47
"title" : "Queryables for STAC API" ,
47
48
"description" : "Queryable names for the STAC API Item Search filter." ,
You can’t perform that action at this time.
0 commit comments