Skip to content
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

update stac-version #762

Merged
merged 1 commit into from
Oct 15, 2024
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
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
* Add `numberMatched` and `numberReturned` properties in `types.stac.ItemCollection` model
* Add `numberMatched` and `numberReturned` properties in `types.stac.Collections` model

## Changed

* use `stac_pydantic.version.STAC_VERSION` instead of `stac_pydantic.api.version.STAC_API_VERSION` as application `stac_version`

## [3.0.3] - 2024-10-09

### Removed
Expand Down
4 changes: 2 additions & 2 deletions stac_fastapi/api/stac_fastapi/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from fastapi.params import Depends
from stac_pydantic import api
from stac_pydantic.api.collections import Collections
from stac_pydantic.api.version import STAC_API_VERSION
from stac_pydantic.shared import MimeTypes
from stac_pydantic.version import STAC_VERSION
from starlette.middleware import Middleware
from starlette.responses import JSONResponse, Response

Expand Down Expand Up @@ -93,7 +93,7 @@ class StacApi:
lambda self: self.settings.stac_fastapi_version, takes_self=True
)
)
stac_version: str = attr.ib(default=STAC_API_VERSION)
stac_version: str = attr.ib(default=STAC_VERSION)
description: str = attr.ib(
default=attr.Factory(
lambda self: self.settings.stac_fastapi_description, takes_self=True
Expand Down
4 changes: 2 additions & 2 deletions stac_fastapi/types/stac_fastapi/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from fastapi import Request
from geojson_pydantic.geometries import Geometry
from stac_pydantic import Collection, Item, ItemCollection
from stac_pydantic.api.version import STAC_API_VERSION
from stac_pydantic.links import Relations
from stac_pydantic.shared import BBox, MimeTypes
from stac_pydantic.version import STAC_VERSION
from starlette.responses import Response

from stac_fastapi.types import stac
Expand Down Expand Up @@ -268,7 +268,7 @@ async def delete_collection(
class LandingPageMixin(abc.ABC):
"""Create a STAC landing page (GET /)."""

stac_version: str = attr.ib(default=STAC_API_VERSION)
stac_version: str = attr.ib(default=STAC_VERSION)
landing_page_id: str = attr.ib(default=api_settings.stac_fastapi_landing_id)
title: str = attr.ib(default=api_settings.stac_fastapi_title)
description: str = attr.ib(default=api_settings.stac_fastapi_description)
Expand Down