Skip to content

Commit

Permalink
Merge pull request #144 from jonhealy1/allow-extra-fields-links
Browse files Browse the repository at this point in the history
Allow extra fields in Links
  • Loading branch information
vincentsarago authored May 14, 2024
2 parents 79248a2 + f0a8a8b commit b128135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion stac_pydantic/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit b128135

Please sign in to comment.