Skip to content

Commit

Permalink
Merge pull request #27 from Element84/pv/fix-pydantic-warnings
Browse files Browse the repository at this point in the history
fix pydantic warnings
  • Loading branch information
Phil Varner authored Oct 3, 2023
2 parents f4aea53 + 9f5152e commit 40665d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/titiler/core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/titiler/mosaic/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"

0 comments on commit 40665d6

Please sign in to comment.