Skip to content

Commit 8a36783

Browse files
fix description for image format (#1158)
1 parent 08868e5 commit 8a36783

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

scripts/test

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#! /usr/bin/env bash
2+
3+
SUBPACKAGE_DIRS=(
4+
"core"
5+
"xarray"
6+
"mosaic"
7+
"application"
8+
"extensions"
9+
)
10+
11+
for PACKAGE_DIR in "${SUBPACKAGE_DIRS[@]}"
12+
do
13+
echo "Running tests for titiler-${PACKAGE_DIR}"
14+
pushd ./src/titiler/${PACKAGE_DIR}
15+
python -m pytest -s
16+
popd
17+
done

src/titiler/core/titiler/core/factory.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,9 @@ def feature_image(
13641364
geojson: Annotated[Feature, Body(description="GeoJSON Feature.")],
13651365
format: Annotated[
13661366
ImageType,
1367-
"Default will be automatically defined if the output image needs a mask (png) or not (jpeg).",
1367+
Field(
1368+
description="Default will be automatically defined if the output image needs a mask (png) or not (jpeg)."
1369+
),
13681370
] = None,
13691371
src_path=Depends(self.path_dependency),
13701372
reader_params=Depends(self.reader_dependency),

src/titiler/mosaic/titiler/mosaic/factory.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,9 @@ def tile(
583583
] = 1,
584584
format: Annotated[
585585
ImageType,
586-
"Default will be automatically defined if the output image needs a mask (png) or not (jpeg).",
586+
Field(
587+
description="Default will be automatically defined if the output image needs a mask (png) or not (jpeg).",
588+
),
587589
] = None,
588590
src_path=Depends(self.path_dependency),
589591
backend_params=Depends(self.backend_dependency),

0 commit comments

Comments
 (0)