Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 846 Bytes

README.rst

File metadata and controls

34 lines (23 loc) · 846 Bytes

aiojsonapi

pipeline status coverage report pypi link

Aiohttp API constructor with dataclass based request validation.

Usage

Simple example:

import typing

from aiojsonapi import JSONTemplate


@JSONTemplate({
    "messages": [{
        "id": int,
        "text": typing.Optional[str]
}])
async def received_message(request):
    pass