Set 400-response automatically when validation is used
#generateDoc takes a router instead. Also, basePath