aiohttp-apispec icon indicating copy to clipboard operation
aiohttp-apispec copied to clipboard

Build and document REST APIs with aiohttp and apispec

Results 33 aiohttp-apispec issues
Sort by recently updated
recently updated
newest added

For example: ```python class TestSchema(Schema): mydatetime = fields.DateTime() class Meta: datetimeformat = '%Y-%m-%dT%H:%M:%S+0300' ``` But in swagger example value something like this: 2021-01-28T11:46:54.499Z

python 3.8. aiohttp 3.6.2 It does not work class-based views, Swagger shows nothing. When using function style all work correctly. ``` class SomeView(web.View): @docs( tags=["mytag"], summary="View method summary", description="View method...

Previously `AiohttpApiSpec` instantiate `ApiSpec` only for `openapi_version == '2.0'`, this PR changes it by allowing pass `openapi_version` to `setup_aiohttp_apispec` function and then use given value, while instantiating `ApiSpec` instance. Fixes...

When a `Schema` only consists of two fields like ``` class ExampleSchema(Schema): field1 = fields.Str() field2 = fields.Str() ``` and is used with `many=True`, the validated data will result in...

Solve the issue as stated in the [Issue](https://github.com/maximdanilchenko/aiohttp-apispec/issues/100)

Added the ability to validate the response using schemas

Some fields are missing from `__apispec__["responses"]` The code for test: ``` class ResponseSchema(Schema): msg = fields.Str() data = fields.Dict() @pytest.fixture() def aiohttp_app(loop, aiohttp_client, request): @response_schema(ResponseSchema, 200, description="GET") async def handler_get(request):...

``` Ubuntu 18.04 Python 3.8.0 aiohttp==3.6.2 aiohttp-apispec==2.2.1 ``` https://github.com/maximdanilchenko/aiohttp-apispec/blob/master/docs/usage.rst ``` class ResponseSchema(Schema): msg = fields.Str() data = fields.Dict() @docs(tags=['mytag'], summary='Test method summary', description='Test method description') @request_schema(RequestSchema(strict=True)) @response_schema(ResponseSchema(), 200) async def...

I wonder how to handle field-based authorization (i.e. a schema which is based on the request). In `webargs.core._get_schema` the argmap is defined as ``` :param argmap: Either a `marshmallow.Schema`, `dict`...

Hello, I have set up the apispec and visited the web page with browser and I found that all swagger static files are 404 not found. For example, I have...