-
Notifications
You must be signed in to change notification settings - Fork 104
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
Response models are not being used to validate responses #461
Comments
I believe you're correct -- I've opened #519 to track the issue. Currently I just have a failing test to demonstrate the issue. |
I confirmed this. The thing was that we are using stac-fastapi/stac_fastapi/api/stac_fastapi/api/routes.py Lines 18 to 24 in 4fb10ec
I've changed this in thomas-maschler#2 for next stac-fastapi major version and will also change this for ~2.4 (maybe 2.5) #650 (comment) |
I believe this is not fixed and tested |
I've got confused by the fact that response models are not being used to validate responses. Isn't that its main purpose? As you can see here for example response model is Collection. But if we modify collection's content in the database (pgstac) in order not to be align with the response model stac-fastapi simple ignores it and returns what we have in the database without any warning/error:
But according to the response model type should be
Collection
.ENABLE_RESPONSE_MODELS
set totrue
The text was updated successfully, but these errors were encountered: