Skip to content

Commit b128135

Browse files
Merge pull request #144 from jonhealy1/allow-extra-fields-links
Allow extra fields in Links
2 parents 79248a2 + f0a8a8b commit b128135

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
3.1.0 (TBD)
22
-----------------
3+
- Allow extra fields in Links (#144, @jonhealy1)
34
- Remove the deprecated `Context` extension (#138, @vincentsarago)
45
- Rename `stac_pydantic.api.conformance.ConformanceClasses` to `stac_pydantic.api.conformance.Conformance`
56
- Update pre-commit configuration and switch to astral-sh/ruff for linter and formater

stac_pydantic/links.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Link(StacBaseModel):
2020

2121
# Label extension
2222
label: Optional[str] = Field(default=None, alias="label:assets")
23-
model_config = ConfigDict(use_enum_values=True, extra="forbid")
23+
model_config = ConfigDict(use_enum_values=True, extra="allow")
2424

2525
def resolve(self, base_url: str) -> None:
2626
"""resolve a link to the given base URL"""

0 commit comments

Comments
 (0)