stac-utils / stac-fastapi

STAC API implementation with FastAPI.
https://stac-utils.github.io/stac-fastapi/
MIT License
242 stars 99 forks source link

Detect disabled extensions in requests #680

Open drnextgis opened 5 months ago

drnextgis commented 5 months ago

An extension can be disabled, and this is reflected in the conformsTo section. However, if a client utilizes the syntax of a disabled extension (e.g., query) in a request, it would be helpful to have a mechanism on the server side to detect this and raise an exception. Currently, it merely ignores such requests, leaving the client unaware of why the results do not match the submitted query.

jonhealy1 commented 3 months ago

Hi. Do you have any thoughts on how this could be implemented?

vincentsarago commented 3 months ago

there are two things: