1
0

Fix validation wrapper to work for oop.

This is not general enough to be honest.
This commit is contained in:
Jorik Schellekens
2019-08-27 14:11:12 +01:00
parent 13ea03ccd6
commit 1cef415af7

View File

@@ -13,7 +13,7 @@ def validate_schema(schema):
def _do_validate(self, request):
body = json.loads(request.content.read())
validate(instance=body, schema=schema)
return func(request, body)
return func(self, request, body)
return _do_validate