Closed jalelegenda closed 3 years ago
In order to group parameters like this ?
>>> class Pagination(GroupParameters):
... page: int = 0
... nb_elements_per_pages: int = 10
...
class ArticleView(PydanticView):
async def get(self, pagination: Pagination):
return web.json_response({'with_comments': with_comments})
Added in aiohttp-pydantic v1.12.0
https://github.com/Maillol/aiohttp-pydantic#group-parameters
This is a feature request, but it'd be nice to be able to use an input model as opposed to e.g. 10 parameters for GET requests.