Sanic-validation is back in version 0.4.4

Sanic-validation was recently updated to 0.4.4.

Features

The only new feature is the ability to customize the validation error HTTP response status code.
For example, if you want to return 422 Unprocessable Entity on validation errors, just use:

1
2
3
4
app.route('/')
@validate_json(schema, clean=True, status_code=422)
async def my_age(request, valid_json):
return text(valid_json['age'])

This feature was contributed by erietta. Thanks.

CI

Set up automatic deployments to PyPI with travis-ci. Hopefully this will reduce the time between a pull request and a new release with the feature.

CI matrix was updated to test against newer sanic versions and Python 3.7

For more information, check out the documentation.