Skip to content

Commit

Permalink
replace conint usage
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Apr 1, 2024
1 parent c8fd8cf commit 29e509c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stac_fastapi/types/stac_fastapi/types/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Polygon,
_GeometryBase,
)
from pydantic import BaseModel, ConstrainedInt, validator
from pydantic import BaseModel, ConstrainedInt, Field, validator
from pydantic.errors import NumberNotGtError
from pydantic.validators import int_validator
from stac_pydantic.shared import BBox
Expand Down Expand Up @@ -130,7 +130,7 @@ class BaseSearchPostRequest(BaseModel):
Union[Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon]
]
datetime: Optional[DateTimeType]
limit: Optional[conint(gt=0, le=10000)] = 10
limit: Optional[Limit] = Field(default=10)

@property
def start_date(self) -> Optional[datetime]:
Expand Down

0 comments on commit 29e509c

Please sign in to comment.