Skip to content

Commit

Permalink
fix apidoc parsing of <>
Browse files Browse the repository at this point in the history
  • Loading branch information
dionhaefner committed Jan 7, 2024
1 parent e0df868 commit 63baa41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion terracotta/server/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _deserialize(

def validate_stretch_range(data: Any) -> None:
"""
Validates that the stretch range is in the format `p&lt;digits&gt;`
Validates that the stretch range is in the format `p<digits>`
when a string is used.
"""
if isinstance(data, str):
Expand Down
6 changes: 3 additions & 3 deletions terracotta/server/rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Meta:
description=(
"Stretch range [min, max] to use for the red band as JSON array. "
"Min and max may be numbers to use as absolute range, or strings "
"of the format `p&lt;digits&gt;` with an integer between 0 and 100 "
"of the format `p<digits>` with an integer between 0 and 100 "
"to use percentiles of the image instead. "
"Null values indicate global minimum / maximum."
),
Expand All @@ -50,7 +50,7 @@ class Meta:
description=(
"Stretch range [min, max] to use for the gren band as JSON array. "
"Min and max may be numbers to use as absolute range, or strings "
"of the format `p&lt;digits&gt;` with an integer between 0 and 100 "
"of the format `p<digits>` with an integer between 0 and 100 "
"to use percentiles of the image instead. "
"Null values indicate global minimum / maximum."
),
Expand All @@ -63,7 +63,7 @@ class Meta:
description=(
"Stretch range [min, max] to use for the blue band as JSON array. "
"Min and max may be numbers to use as absolute range, or strings "
"of the format `p&lt;digits&gt;` with an integer between 0 and 100 "
"of the format `p<digits>` with an integer between 0 and 100 "
"to use percentiles of the image instead. "
"Null values indicate global minimum / maximum."
),
Expand Down
2 changes: 1 addition & 1 deletion terracotta/server/singleband.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Meta:
description=(
"Stretch range [min, max] to use as JSON array. "
"Min and max may be numbers to use as absolute range, or strings "
"of the format `p&lt;digits&gt;` with an integer between 0 and 100 "
"of the format `p<digits>` with an integer between 0 and 100 "
"to use percentiles of the image instead. "
"Null values indicate global minimum / maximum."
),
Expand Down

0 comments on commit 63baa41

Please sign in to comment.