Skip to content

Commit

Permalink
replace inexistent enum with string while we wait for stac-pydantic u…
Browse files Browse the repository at this point in the history
…pdate (#656)
  • Loading branch information
vincentsarago authored Apr 11, 2024
1 parent a262115 commit 315cfae
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions stac_fastapi/types/stac_fastapi/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,10 @@ def landing_page(self, **kwargs) -> stac_types.LandingPage:
if self.extension_is_enabled("FilterExtension"):
landing_page["links"].append(
{
"rel": Relations.queryables.value,
"type": MimeTypes.jsonschema,
# TODO: replace this with Relations.queryables.value,
"rel": "http://www.opengis.net/def/rel/ogc/1.0/queryables",
# TODO: replace this with MimeTypes.jsonschema,
"type": "application/schema+json",
"title": "Queryables",
"href": urljoin(base_url, "queryables"),
"method": "GET",
Expand Down Expand Up @@ -583,8 +585,10 @@ async def landing_page(self, **kwargs) -> stac_types.LandingPage:
if self.extension_is_enabled("FilterExtension"):
landing_page["links"].append(
{
"rel": Relations.queryables.value,
"type": MimeTypes.jsonschema,
# TODO: replace this with Relations.queryables.value,
"rel": "http://www.opengis.net/def/rel/ogc/1.0/queryables",
# TODO: replace this with MimeTypes.jsonschema,
"type": "application/schema+json",
"title": "Queryables",
"href": urljoin(base_url, "queryables"),
"method": "GET",
Expand Down

0 comments on commit 315cfae

Please sign in to comment.