It's common to use Generics to reuse a wrapper schema to enclose many different payload schemas existing on the data attribute. This is what I'm currently doing but when I do that, make_response raises an exception when I hit the endpoint.
TypeError: The response value type (GenericResponseWrapper[LinkAccountResponse]) is not valid
It's common to use Generics to reuse a wrapper schema to enclose many different payload schemas existing on the data attribute. This is what I'm currently doing but when I do that, make_response raises an exception when I hit the endpoint.
It would seem after a little exploration of the code, the problem lies here: https://github.com/pgjones/quart-schema/blob/a2171e82cf20ae070c5471e4ae353a2cb3e55846/src/quart_schema/extension.py#L335C18-L335C18
should instead be
with the additional import
For test case purposes I use the following model for the envelope "(any model for the actual response schema):
I use the following style type hint for the view:
and return from the view like so