File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
src/titiler/extensions/titiler/extensions Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11# Release Notes
22
3+ ## Next (TDB)
4+
5+ ### titiler.extensions
6+
7+ * use TiTiler's custom JSONResponse for the ` /validate ` endpoint to avoid issue when COG has ` NaN ` nodata value
8+
39## 0.11.7 (2023-05-18)
410
511### titiler.core
Original file line number Diff line number Diff line change 55from fastapi import Depends , Query
66
77from titiler .core .factory import BaseTilerFactory , FactoryExtension
8+ from titiler .core .resources .responses import JSONResponse
89
910try :
1011 from rio_cogeo .cogeo import cog_info
@@ -25,7 +26,11 @@ def register(self, factory: BaseTilerFactory):
2526 cog_info is not None
2627 ), "'rio_cogeo' must be installed to use CogValidateExtension"
2728
28- @factory .router .get ("/validate" , response_model = Info )
29+ @factory .router .get (
30+ "/validate" ,
31+ response_model = Info ,
32+ response_class = JSONResponse ,
33+ )
2934 def validate (
3035 src_path : str = Depends (factory .path_dependency ),
3136 strict : bool = Query (False , description = "Treat warnings as errors" ),
You can’t perform that action at this time.
0 commit comments