From 0a23402ef069c432ffca07b8f69a891a9e836298 Mon Sep 17 00:00:00 2001 From: jonhealy1 Date: Fri, 10 May 2024 22:24:58 +0800 Subject: [PATCH 1/2] allow extra fields in links --- stac_pydantic/links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stac_pydantic/links.py b/stac_pydantic/links.py index e2ed603..0f62f30 100644 --- a/stac_pydantic/links.py +++ b/stac_pydantic/links.py @@ -20,7 +20,7 @@ class Link(StacBaseModel): # Label extension label: Optional[str] = Field(default=None, alias="label:assets") - model_config = ConfigDict(use_enum_values=True, extra="forbid") + model_config = ConfigDict(use_enum_values=True, extra="allow") def resolve(self, base_url: str) -> None: """resolve a link to the given base URL""" From f0a8a8b1c3311ba7fb44731288d77d4bbc741d07 Mon Sep 17 00:00:00 2001 From: jonhealy1 Date: Mon, 13 May 2024 20:58:37 +0800 Subject: [PATCH 2/2] update changelog --- CHANGELOG.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 8c5c6cb..b84caba 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,6 @@ 3.1.0 (TBD) ----------------- +- Allow extra fields in Links (#144, @jonhealy1) - Remove the deprecated `Context` extension (#138, @vincentsarago) - Rename `stac_pydantic.api.conformance.ConformanceClasses` to `stac_pydantic.api.conformance.Conformance` - Update pre-commit configuration and switch to astral-sh/ruff for linter and formater