File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11
11
* Add ` numberMatched ` and ` numberReturned ` properties in ` types.stac.ItemCollection ` model
12
12
* Add ` numberMatched ` and ` numberReturned ` properties in ` types.stac.Collections ` model
13
13
14
+ ## Changed
15
+
16
+ * use ` stac_pydantic.version.STAC_VERSION ` instead of ` stac_pydantic.api.version.STAC_API_VERSION ` as application ` stac_version `
17
+
14
18
## [ 3.0.3] - 2024-10-09
15
19
16
20
### Removed
Original file line number Diff line number Diff line change 10
10
from fastapi .params import Depends
11
11
from stac_pydantic import api
12
12
from stac_pydantic .api .collections import Collections
13
- from stac_pydantic .api .version import STAC_API_VERSION
14
13
from stac_pydantic .shared import MimeTypes
14
+ from stac_pydantic .version import STAC_VERSION
15
15
from starlette .middleware import Middleware
16
16
from starlette .responses import JSONResponse , Response
17
17
@@ -93,7 +93,7 @@ class StacApi:
93
93
lambda self : self .settings .stac_fastapi_version , takes_self = True
94
94
)
95
95
)
96
- stac_version : str = attr .ib (default = STAC_API_VERSION )
96
+ stac_version : str = attr .ib (default = STAC_VERSION )
97
97
description : str = attr .ib (
98
98
default = attr .Factory (
99
99
lambda self : self .settings .stac_fastapi_description , takes_self = True
Original file line number Diff line number Diff line change 8
8
from fastapi import Request
9
9
from geojson_pydantic .geometries import Geometry
10
10
from stac_pydantic import Collection , Item , ItemCollection
11
- from stac_pydantic .api .version import STAC_API_VERSION
12
11
from stac_pydantic .links import Relations
13
12
from stac_pydantic .shared import BBox , MimeTypes
13
+ from stac_pydantic .version import STAC_VERSION
14
14
from starlette .responses import Response
15
15
16
16
from stac_fastapi .types import stac
@@ -268,7 +268,7 @@ async def delete_collection(
268
268
class LandingPageMixin (abc .ABC ):
269
269
"""Create a STAC landing page (GET /)."""
270
270
271
- stac_version : str = attr .ib (default = STAC_API_VERSION )
271
+ stac_version : str = attr .ib (default = STAC_VERSION )
272
272
landing_page_id : str = attr .ib (default = api_settings .stac_fastapi_landing_id )
273
273
title : str = attr .ib (default = api_settings .stac_fastapi_title )
274
274
description : str = attr .ib (default = api_settings .stac_fastapi_description )
You can’t perform that action at this time.
0 commit comments