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
#[utoipa::path( context_path = "/cats/", params(PaginationQueryParam), responses((status = 200, description = "Return a list of cats", body = PaginatedCat),),)]
This works as expected, the references chain themselves like so
- (status = 200, description = "Return a list of cats", body = PaginatedCat),+ (status = 200, description = "Return a list of cats", body = inline(PaginatedCat)),
The text was updated successfully, but these errors were encountered:
Oh... This is kind of unfortunate. As when inline is being used it actually just calls ToSchema::schema() behind the scenes. That is, it does not know about whether the type itself has generics or aliases defined.
This is bit hard to solve at first thought. There is most likely a need for some significant effort in order to actually fix this issue as it is actually spread allover where the inline is being allowed to use.
I have a paginator defined like this
Which is then used in the following scenario
This works as expected, the references chain themselves like so
However, if I try to turn this into an inline response, it is trying to refer
T
instead ofCat
The text was updated successfully, but these errors were encountered: