Skip to content

Commit 315cfae

Browse files
replace inexistent enum with string while we wait for stac-pydantic update (#656)
1 parent a262115 commit 315cfae

File tree

1 file changed

+8
-4
lines changed
  • stac_fastapi/types/stac_fastapi/types

1 file changed

+8
-4
lines changed

stac_fastapi/types/stac_fastapi/types/core.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@ def landing_page(self, **kwargs) -> stac_types.LandingPage:
373373
if self.extension_is_enabled("FilterExtension"):
374374
landing_page["links"].append(
375375
{
376-
"rel": Relations.queryables.value,
377-
"type": MimeTypes.jsonschema,
376+
# TODO: replace this with Relations.queryables.value,
377+
"rel": "http://www.opengis.net/def/rel/ogc/1.0/queryables",
378+
# TODO: replace this with MimeTypes.jsonschema,
379+
"type": "application/schema+json",
378380
"title": "Queryables",
379381
"href": urljoin(base_url, "queryables"),
380382
"method": "GET",
@@ -583,8 +585,10 @@ async def landing_page(self, **kwargs) -> stac_types.LandingPage:
583585
if self.extension_is_enabled("FilterExtension"):
584586
landing_page["links"].append(
585587
{
586-
"rel": Relations.queryables.value,
587-
"type": MimeTypes.jsonschema,
588+
# TODO: replace this with Relations.queryables.value,
589+
"rel": "http://www.opengis.net/def/rel/ogc/1.0/queryables",
590+
# TODO: replace this with MimeTypes.jsonschema,
591+
"type": "application/schema+json",
588592
"title": "Queryables",
589593
"href": urljoin(base_url, "queryables"),
590594
"method": "GET",

0 commit comments

Comments
 (0)