Closed gabloe closed 1 month ago
Will take a look soon.
@gabloe Please, see 3.15.3 release. Should've fixed it. It fixed cardinality on starlette-exporter as well. I will conduct my own tests on fastapi-pagination within 12 hours
Thanks @zmievsa. Now the pagination_ctx dependency is added to the route, but the Swagger UI is not updated with the query params
@gabloe this results from the fact that fastapi-pagination edits the routes at the very end and we are not generating our swagger dynamically. Someone is already working on this issue though I am not sure about an ETA.
As for a temporary workaround, Cadwyn apps have an "enrich_swagger" method that you can call after a call to fastapi-pagination to solve this issue.
Though I expect to solve the core issue rather soon.
Here is the issue I am referencing.
Please, see 3.15.4. It should fix all the issues. I have tested it with fastapi-pagination too and it worked perfectly for me.
We should now be 1 to 1 compatible with fastapi in terms of openapi and route structure so any libraries like fastapi-pagination should work out of the box.
Wonderful! It is working great for me :)
Thank you for your bug reports, @gabloe ! Very descriptive and helpful. If you have any suggestions or need any further help -- feel free to contact me.
Describe the bug FastAPI-Pagination injects dependencies in FastAPI routes to include query parameters for paginating response data. This does not appear to work with Cadwyn.
To Reproduce Steps to reproduce the behavior:
Expected behavior Routes with a paginated response model should have the injected pagination_ctx dependency.