Web service: generate error if invalid option is in URL
The FastAPI web service for geomag-algorithms silently falls back to a default type
(for example, adjusted) if an invalid option is passed via the URL. To demonstrate this, the two following URLs both "work", but one returns data which is not as expected (look closely):
Preferred behavior would be for the invalid option (in this case tpye
) to generate an error. It seems likely to me that there is a simple switch in FastAPI that would control this behavior, but I don't really know.