Validation Updates: Custom messages and diagnostics

90 views
Skip to first unread message

jmarnold

unread,
Feb 8, 2013, 3:00:06 PM2/8/13
to fubumv...@googlegroups.com
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
validation-diagnostics.png

Jaime Jhon

unread,
Feb 8, 2013, 3:03:09 PM2/8/13
to fubumv...@googlegroups.com
Thanks Josh, I will right away update our codebase to use the latest.

Excellent work as usual.




--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fubumvc-deve...@googlegroups.com.
To post to this group, send email to fubumv...@googlegroups.com.
Visit this group at http://groups.google.com/group/fubumvc-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jaime Febres Velez

Matt S.

unread,
Feb 9, 2013, 10:44:58 AM2/9/13
to fubumv...@googlegroups.com
Wow. Thanks, Josh! This is great stuff.
Reply all
Reply to author
Forward
0 new messages