You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In FastAPI 0.115.0 query parameter models functionality has been added. If we use fastapi-pagination (add_pagination(app)) this feature works incorrectly.
Did you end up creating an issue for this? If so, could you link it?
I had a look at the fastapi repo, and couldn't find an issue for this with you as an author.
Either way, I'm having the same problem. However, the problem appears when I change the return model of the specific endpoint I'm using the query parameter model. And not just because of add_pagination. If I remove the pagination from the return type, the query parameter model works fine.
Hello,
In FastAPI 0.115.0 query parameter models functionality has been added. If we use fastapi-pagination (
add_pagination(app)
) this feature works incorrectly.For example:
Without
![image](https://private-user-images.githubusercontent.com/1299189/372229712-65ef2a05-fce6-4091-b3d2-60ec16bc6b1b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMTgzNzksIm5iZiI6MTczOTIxODA3OSwicGF0aCI6Ii8xMjk5MTg5LzM3MjIyOTcxMi02NWVmMmEwNS1mY2U2LTQwOTEtYjNkMi02MGVjMTZiYzZiMWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMjAwNzU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmFlNTUyYTQ5NWViMWQ2ZDRhMDFkMzdlOGIzNzNjODQyMzFiOTU1MjhkZDVkNzk1Zjg3ZTI4MzZjNzE3OTY5MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Bg8rloz6goTd1FIAqJu2RfRpYEXfCwUw8XuN6b7Ofbo)
add_pagination
:With
![image](https://private-user-images.githubusercontent.com/1299189/372229957-eb8dd088-5d2e-41d3-9035-6c59c97e738f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMTgzNzksIm5iZiI6MTczOTIxODA3OSwicGF0aCI6Ii8xMjk5MTg5LzM3MjIyOTk1Ny1lYjhkZDA4OC01ZDJlLTQxZDMtOTAzNS02YzU5Yzk3ZTczOGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMjAwNzU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTFiMzk3MWUyNzExZDQxYzgyODI0Y2IyNzQ2YmFiZWU3YjEwOGRiM2Y3MTc3ZjViYWEwNzJmNjMxNjBjZjA1ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.R5hmcstGa9tCSAhMGQv6SuJtgsU-3Q3XfdDXb7YF_3s)
add_pagination
:The text was updated successfully, but these errors were encountered: