From e6fce7ff21f0a9816e85f751a88ccea2c6129986 Mon Sep 17 00:00:00 2001 From: Sam Steyer Date: Mon, 24 Jun 2019 14:11:21 -0700 Subject: [PATCH 1/3] Make request 1st argument to decorated handler --- aiohttp_validate/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohttp_validate/__init__.py b/aiohttp_validate/__init__.py index b738ac0..f04c2d3 100644 --- a/aiohttp_validate/__init__.py +++ b/aiohttp_validate/__init__.py @@ -131,7 +131,7 @@ def wrapped(*args): _validate_data(req_body, request_schema, _request_schema_validator) - coro_args = req_body, request + coro_args = request, req_body if class_based: coro_args = (args[0],) + coro_args From 64d99dd36bd8d113339e5531e5ca40aea34b6e06 Mon Sep 17 00:00:00 2001 From: Sam Steyer Date: Mon, 24 Jun 2019 14:12:04 -0700 Subject: [PATCH 2/3] Correct name of requirements_dev.txt in README.md --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index b9df50e..a4db455 100644 --- a/README.rst +++ b/README.rst @@ -69,7 +69,7 @@ Developing Install requirement and launch tests:: - pip install -r requirements-dev.txt + pip install -r requirements_dev.txt py.test From 2e2eeb1db35dbdc0d7265a33b08d8d4279acbca3 Mon Sep 17 00:00:00 2001 From: Sam Steyer Date: Mon, 24 Jun 2019 14:13:24 -0700 Subject: [PATCH 3/3] Change to comply with flake8 --- tests/test_aiohttp_validate.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_aiohttp_validate.py b/tests/test_aiohttp_validate.py index 92bb143..4d09102 100644 --- a/tests/test_aiohttp_validate.py +++ b/tests/test_aiohttp_validate.py @@ -13,7 +13,6 @@ from aiohttp import web - @validate( request_schema={ "type": "object",