Skip to content

Commit 2b00cf2

Browse files
authored
Disable generic format check for collection_coverage (#1705)
* Disable generic format check for collection_coverage This view can and must handle custom format * Remove trailing comma
1 parent bcc5b79 commit 2b00cf2

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

pygeoapi/django_/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ def collection_coverage(request: HttpRequest,
269269
"""
270270

271271
return execute_from_django(
272-
coverages_api.get_collection_coverage, request, collection_id
272+
coverages_api.get_collection_coverage, request, collection_id,
273+
skip_valid_check=True
273274
)
274275

275276

pygeoapi/flask_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def collection_coverage(collection_id):
327327
"""
328328

329329
return execute_from_flask(coverages_api.get_collection_coverage, request,
330-
collection_id)
330+
collection_id, skip_valid_check=True)
331331

332332

333333
@BLUEPRINT.route('/collections/<path:collection_id>/tiles')

pygeoapi/starlette_app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ async def collection_coverage(request: Request, collection_id=None):
391391
collection_id = request.path_params['collection_id']
392392

393393
return await execute_from_starlette(
394-
coverages_api.get_collection_coverage, request, collection_id)
394+
coverages_api.get_collection_coverage, request, collection_id,
395+
skip_valid_check=True)
395396

396397

397398
async def collection_map(request: Request, collection_id, style_id=None):

0 commit comments

Comments
 (0)