painterjd / stoplight

Stoplight -- An Input Validation Framework for Python
Apache License 2.0
15 stars 5 forks source link

Allow validation_function to be more dynamic, such as accepting a schema #1

Closed tonytan4ever closed 10 years ago

tonytan4ever commented 10 years ago

This will allow validation function to be more generic, you can do something like:

@validation_function def with_schema_2(request, schema=None): ....

to pass in a schema to validate against