Skip to content

fix description for image format #1158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix description for image format
  • Loading branch information
vincentsarago committed May 15, 2025
commit f97fd700f34c9c32e423d205b66c7971e58b5363
17 changes: 17 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#! /usr/bin/env bash

SUBPACKAGE_DIRS=(
"core"
"xarray"
"mosaic"
"application"
"extensions"
)

for PACKAGE_DIR in "${SUBPACKAGE_DIRS[@]}"
do
echo "Running tests for titiler-${PACKAGE_DIR}"
pushd ./src/titiler/${PACKAGE_DIR}
python -m pytest -s
popd
done
4 changes: 3 additions & 1 deletion src/titiler/core/titiler/core/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,9 @@ def feature_image(
geojson: Annotated[Feature, Body(description="GeoJSON Feature.")],
format: Annotated[
ImageType,
"Default will be automatically defined if the output image needs a mask (png) or not (jpeg).",
Field(
description="Default will be automatically defined if the output image needs a mask (png) or not (jpeg)."
),
] = None,
src_path=Depends(self.path_dependency),
reader_params=Depends(self.reader_dependency),
Expand Down
4 changes: 3 additions & 1 deletion src/titiler/mosaic/titiler/mosaic/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,9 @@ def tile(
] = 1,
format: Annotated[
ImageType,
"Default will be automatically defined if the output image needs a mask (png) or not (jpeg).",
Field(
description="Default will be automatically defined if the output image needs a mask (png) or not (jpeg).",
),
] = None,
src_path=Depends(self.path_dependency),
backend_params=Depends(self.backend_dependency),
Expand Down
Loading