Handle multiple binding errors from ModelBindingException in NancyFX when binding to JSON in Request.Body
问题 I have a post route that accepts some JSON payload in the request body. Post["/myroute/}"] = _ => { try { var model = this.Bind<MyModel>(); } catch (ModelBindingException e) { //PropertyBindException list is empty here, //so only the first exception can be handled... } } If there are multiple invalid data types (i.e. if there are several int properties defined in MyModel, and a user posts strings for those properties), I would like pass back a nice list of these errors, similar to how would