diff --git a/CHANGELOG.md b/CHANGELOG.md index 32fecb97c..ef0230a39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Changed - Allow object ID as input for getting APILayoutStrategy hrefs and add `items`, `collections`, `search`, `conformance`, `service_desc` and `service_doc` href methods. ([#1335](https://github.com/stac-utils/pystac/pull/1335)) +- Update docstring of `name` argument to `Classification.apply` and `Classification.create` to agree with extension specification. ([#1356](https://github.com/stac-utils/pystac/pull/1356)) ## [v1.10.1] - 2024-05-03 diff --git a/pystac/extensions/classification.py b/pystac/extensions/classification.py index 31d98d47c..64e8187bd 100644 --- a/pystac/extensions/classification.py +++ b/pystac/extensions/classification.py @@ -68,7 +68,8 @@ def apply( Args: value: The integer value corresponding to this class description: The description of this class - name: The optional human-readable short name for this class + name: Short name of the class for machine readability. Must consist only + of letters, numbers, -, and _ characters. color_hint: An optional hexadecimal string-encoded representation of the RGB color that is suggested to represent this class (six hexadecimal characters, all capitalized) @@ -103,7 +104,8 @@ def create( Args: value: The integer value corresponding to this class - name: The human-readable short name for this class + name: Short name of the class for machine readability. Must consist only + of letters, numbers, -, and _ characters. description: The optional long-form description of this class color_hint: An optional hexadecimal string-encoded representation of the RGB color that is suggested to represent this class (six hexadecimal