validateSchema<O> method
Check the request (query and body) with a fluent dox_validation
schema and give its output. Only for input you know at runtime.
Map<String, dynamic> data = await req.validateSchema(v.object({
'email': v.string().email(),
}));
Implementation
Future<O> validateSchema<O>(Schema<O> schema) {
return Dox().validator.validateSchema(schema, all());
}