Releases: stac-utils/stac-pydantic
Releases · stac-utils/stac-pydantic
Release list
3.6.0
What's Changed
- fix: add tests to show urljoin issue by @vincentsarago in #219
- feat: update min python version to >= 3.10 and update typing hints by @vincentsarago in #221
- fix: invalid urljoin usage by @vincentsarago in #222
- Bump uv from 0.11.8 to 0.11.15 by @dependabot[bot] in #213
- Bump astral-sh/setup-uv from 8.1.0 to 8.2.0 in the minor-and-patch group across 1 directory by @dependabot[bot] in #217
- Bump codecov/codecov-action from 6.0.1 to 7.0.0 by @dependabot[bot] in #215
Full Changelog: 3.5.2...3.6.0
3.6.0a1
What's Changed
- fix: invalid urljoin usage by @vincentsarago in #222
Full Changelog: 3.6.0a0...3.6.0a1
3.6.0a0
What's Changed
- fix: fix urljoin issue by @vincentsarago in #219
- feat: update min python version to >= 3.10 and update typing hints by @vincentsarago in #221
- Bump uv from 0.11.8 to 0.11.15 by @dependabot[bot] in #213
- Bump astral-sh/setup-uv from 8.1.0 to 8.2.0 in the minor-and-patch group across 1 directory by @dependabot[bot] in #217
- Bump codecov/codecov-action from 6.0.1 to 7.0.0 by @dependabot[bot] in #215
Full Changelog: 3.5.2...3.6.0a0
3.5.2
What's Changed
- Bump codecov/codecov-action from 6.0.0 to 6.0.1 in the minor-and-patch group by @dependabot[bot] in #210
- Bump idna from 3.13 to 3.15 by @dependabot[bot] in #209
- Fix/remove invalid bbox check by @vincentsarago in #212
Full Changelog: 3.5.1...3.5.2
3.5.1
What's Changed
- fix: Add top level public declaration
__all__for export @vincentsarago in #208
New Contributors
- @dependabot[bot] made their first contribution in #193
- @lhoupert made their first contribution in #200
Full Changelog: 3.5.0...3.5.1
3.5.0
What's Changed
-
Mark tests requiring access to the internet by @avalentino in #187
-
switch to uv and hatch by @vincentsarago in #188
-
fix: make sure to return datetime=null event if exclude_none is set by @vincentsarago in #190
from stac_pydantic.api import Item stac_item = Item.model_validate( { "id": "12345", "type": "Feature", "stac_extensions": [], "geometry": None, "properties": { "datetime": None, "start_datetime": "2024-01-01T00:00:00Z", "end_datetime": "2024-01-02T00:00:00Z", }, "collection": "collection", "links": [ { "rel": "self", "href": "http://stac.example.com/catalog/collections/CS3-20160503_132130_04/items/CS3-20160503_132130_04.json" }, { "rel": "collection", "href": "http://stac.example.com/catalog/CS3-20160503_132130_04/catalog.json" }, { "rel": "root", "href": "http://stac.example.com/catalog" } ], "assets": {}, } ) out = stac_item.model_dump(exclude_none=True) # `geometry` is required assert out["geometry"] is None # `datetime` is a required property assert out["properties"]["datetime"] is None # force exclusion of required keys out = stac_item.model_dump(exclude_none=True, exclude={"properties": {"datetime"}, "geometry": True}) assert "geometry" not in out assert "datetime" not in out["properties"]
New Contributors
- @avalentino made their first contribution in #187
Full Changelog: 3.4.0...3.5.0
3.4.0
What's Changed
- remove 'label:assets' property from link by @fmigneault in #184
New Contributors
- @fmigneault made their first contribution in #184
Full Changelog: 3.3.2...3.4.0
3.3.2
What's Changed
- Remove restriction on valid media types for links by @mishaschwartz in #182
New Contributors
- @mishaschwartz made their first contribution in #182
Full Changelog: 3.3.1...3.3.2
3.3.1
What's Changed
- add SearchDatetime back in api.search by @vincentsarago in #180
Full Changelog: 3.3.0...3.3.1
3.3.0
What's Changed
- add datetime validation for collection time intervals by @vincentsarago in #177
- add spatial intervals validation by @vincentsarago in #178
- Release/v3.3.0 by @vincentsarago in #179
Full Changelog: 3.2.0...3.3.0