Yurii Karabas
Yurii Karabas
@davidbrochart How JSON response should look like? smth like this? ```json { "other_data": 1000000, "data_to_paginate": ["a", "b", "c"] } ```
@davidbrochart It looks ugly now( I will try to provide a better API for such purposes. ```py from string import ascii_lowercase from typing import Sequence, Type, TypeVar, Optional, Generic, cast...
@davidbrochart As for me ideal API should look like this: ```py from string import ascii_lowercase from typing import Sequence, Type, TypeVar, Optional, Generic, Dict, Any from fastapi import FastAPI from...
I think yes. Could you please show how API should look like in your opinion?
Thanks for your suggestion. I will try to think about a good API for such feature. Currently, as a workaround you can access paginated items and pass them to your...
It's `starlette` issue - https://github.com/encode/starlette/issues/1116
I believe it's a bug. As a temporary workaround, you can add `ServerErrorMiddleware` middleware with global exc handler before all middlewares: ```py from starlette.middleware.errors import ServerErrorMiddleware from starlette.requests import Request...
It was discussed at #101 Use can use a return type annotation as `response_model`, but in a case when it leads to some type errors it will be replaced with...
@juhovh-aiven Thanks for the comment. I will do the same as you did. I will close this PR. But I think that won't be the last PR regarding this feature๐
@tiangolo Should I also update docs?