class Validator {

	public void validate(HttpServerRequest req, String type, Buffer jsonBuffer, Handler<ValidationResult> callback) {
		final Logger log = RequestLoggerFactory.getLogger(Validator.class, req);
		if(!req.path().startsWith(schemaRoot)) {
			log.debug("Validating request");
			doValidate(jsonBuffer, req.path(), schemaRoot, type, (req.path().replaceFirst("^/", "")+"/"+type).split("/"), log, callback);
		}
	}

	public  Validator(ResourceStorage storage, String schemaRoot);

}