dvdzkwsk / react-reformed

Make React forms simple again, see it here:
https://react-reformed.zuko.me/
MIT License
541 stars 32 forks source link

Support custom error generation #12

Closed dylansmith closed 7 years ago

dylansmith commented 7 years ago

While I know the validateSchema module provided is "just for demonstration", it's still very useful and we are considering using it as-is. However, we are also using react-intl and would like our errors to be returned as message ids rather than English-only messages. This small change enables both this, as well as many other use-cases where custom error messages would be desirable.

dvdzkwsk commented 7 years ago

Hey, that's a totally fair use case to support. Made one minor comment in the PR, but it looks good overall. Thank you!

dvdzkwsk commented 7 years ago

Thanks! Merged and published.

dylansmith commented 7 years ago

Thanks for the quick release!

On 16 May 2017 1:45 p.m., "David Zukowski" notifications@github.com wrote:

Thanks! Merged and published.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davezuko/react-reformed/pull/12#issuecomment-301770751, or mute the thread https://github.com/notifications/unsubscribe-auth/AAitdu1VRUhHM1Sa51FsSfLw1tHhPq_aks5r6Zp5gaJpZM4NbBhv .