Skip to content

Commit 1676fa4

Browse files
fix: OpenAPI examples (#1239)
* fix: OpenAPI examples * docs: Updated changelog * update changelog --------- Co-authored-by: vincentsarago <[email protected]>
1 parent 4ecb0cf commit 1676fa4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
### titiler.core
66

77
* update `TileJSON` spec from 2.2.0 to 3.0.0
8+
* fix OpenAPI spec for `histogram_range` examples (@guillemc23, https://github.com/developmentseed/titiler/pull/1239)
89

910
## 0.24.1 (2025-10-10)
1011

1112
* add `grayscale` and `bitonal` algorithms
1213
* add `transform` and `crs` for `tiff` outputs
1314

15+
1416
## 0.24.0 (2025-09-23)
1517

1618
### Misc

src/titiler/core/titiler/core/dependencies.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,13 @@ class HistogramParams(DefaultDependency):
575575
576576
link: https://numpy.org/doc/stable/reference/generated/numpy.histogram.html
577577
""",
578-
examples="0,1000",
578+
openapi_examples={
579+
"user-provided": {"value": None},
580+
"array": {
581+
"description": "Defines custom histogram range (comma `,` delimited values)",
582+
"value": "0,1000",
583+
},
584+
},
579585
),
580586
] = None
581587

0 commit comments

Comments
 (0)