Skip to content

Commit

Permalink
ensure description is not empty stac-utils#1381
Browse files Browse the repository at this point in the history
  • Loading branch information
tylanderson committed Oct 15, 2024
1 parent 4a539a1 commit 18affb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pystac/common_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def description(self) -> str | None:

@description.setter
def description(self, v: str | None) -> None:
if v == "":
raise ValueError("description cannot be an empty string")
self._set_field("description", v)

# Date and Time Range
Expand Down

0 comments on commit 18affb7

Please sign in to comment.