hfaran / Tornado-JSON

A simple JSON API framework based on Tornado
http://tornado-json.readthedocs.org/
MIT License
273 stars 60 forks source link

@schema.validate allow to transfer custom `IValidator` class that will be used to validate the instance. #85

Closed rkaralkin closed 8 years ago

rkaralkin commented 8 years ago

Hi,

I want use own jsonschema validator. Can you accept it in @schema.validate decorator and than pass it to jsonschema.validate()

Same way as you doing with format_checker.

hfaran commented 8 years ago

Hey @rkaralkin I'm swamped at the moment so I don't know when I'll be able to get around to this. Feel free to submit a PR for this though and I can look at it!