diff --git a/src/titiler/core/pyproject.toml b/src/titiler/core/pyproject.toml index 2c9facfdb..dba637710 100644 --- a/src/titiler/core/pyproject.toml +++ b/src/titiler/core/pyproject.toml @@ -33,6 +33,7 @@ dependencies = [ "geojson-pydantic>=1.0,<2.0", "jinja2>=2.11.2,<4.0.0", "numpy", + "pystac<=1.8.3", "pydantic~=2.0", "rasterio", "rio-tiler>=6.0,<7.0", diff --git a/src/titiler/mosaic/pyproject.toml b/src/titiler/mosaic/pyproject.toml index 7c0d4b016..660a0bf81 100644 --- a/src/titiler/mosaic/pyproject.toml +++ b/src/titiler/mosaic/pyproject.toml @@ -30,6 +30,7 @@ classifiers = [ dynamic = ["version"] dependencies = [ "mercantile", + "pystac<=1.8.3", "pystac-client~=0.6.0", "morecantile>=5.0,<6.0", "titiler.core==0.14.0", diff --git a/src/titiler/mosaic/titiler/mosaic/models/stac_pydantic/shared.py b/src/titiler/mosaic/titiler/mosaic/models/stac_pydantic/shared.py index fa089b387..4dc81ce33 100644 --- a/src/titiler/mosaic/titiler/mosaic/models/stac_pydantic/shared.py +++ b/src/titiler/mosaic/titiler/mosaic/models/stac_pydantic/shared.py @@ -6,7 +6,7 @@ from enum import Enum, auto from typing import List, Optional, Tuple, Union -from pydantic import BaseModel, Extra, Field +from pydantic import BaseModel, Field from titiler.mosaic.models.stac_pydantic.utils import AutoValueEnum @@ -122,6 +122,6 @@ class Config: Configuration values for the shared asset """ - allow_population_by_field_name = True + populate_by_name = True use_enum_values = True - extra = Extra.allow + extra = "allow"