Folks,
I just pushed quite a bit of work into the Validation nugets with one minor-breaking change. As usual, here are the highlights:
- Localization messages now flow all the way down to the client (I forgot I hadn't killed that todo...)
- You can now configure validation messages on a per property basis (NOTE: doesn't work for attributes but you can do it via the OverridesFor)
- Diagnostics visualization integration
Breaking Change:
The IFieldValidationRule interface now exposes the associated StringToken via the Token property. This is used to push down the messages to the clientside integration.
Diagnostics Visualization:
No additional nuget is required. If you visit a route in the route explorer that has validation, you can expand the validation Node (Ajax or ValidationActionFilter) and see a visualization of the validation plan. I've attached a screenshot to show off an example. If you pull the latest public nugets, you'll see this behavior.
New Nugets:
I've pushed public nugets for diagnostics and validation:
- FubuMVC.Diagnostics - 0.9.6.215
- FubuMVC.Validation - 0.9.10.705
- FubuValidation - 0.9.10.705