Closed shon closed 12 years ago
Custom error messages aren't something we have but I like the idea. If you are feeling up to it I'd be happy to take a look at a patch.
As far as custom validators, you can add a validate* method and it will validate that schema keyword. It is pretty straightforward, look at the way that any of the existing validate* methods work for details.
-James
On Tue, Jun 7, 2011 at 5:25 AM, shon < reply@reply.github.com>wrote:
I am planning to use validictory for one of my projects. Main motivation is possible sharing of schema with frontend validators. I could not find quick answers for some of the questions.
- How to customize error messages?
- Some validation libraries include dict (or similar structure) keyed by field names so that one can look at names and populate error messages accordingly. Is it a reasonable expectation to have such thing in Validictory? Or it's already there and just not documented.
- How to add new custom validators?
Sorry for many questions. I can contribute to code if needed.
Reply to this email directly or view it on GitHub: https://github.com/sunlightlabs/validictory/issues/10
Thanks for your answers. Generally I am willing to contribute to packages I use.
What is your take on multiple field error messages as a dict (my second question)?
Sorry about the delay, I think the multiple error messages as a dict could be a useful addition. I'd be happy to discuss more specific ideas on how to achieve this if you have them.
-James
On Tue, Jun 7, 2011 at 1:26 PM, shon < reply@reply.github.com>wrote:
Thanks for your answers. Generally I am willing to contribute to packages I use.
What is your take on multiple field error messages as a dict (my second question)?
Reply to this email directly or view it on GitHub: https://github.com/sunlightlabs/validictory/issues/10#comment_1318678
closing this as it was mainly questions - now answered
I am planning to use validictory for one of my projects. Main motivation is possible sharing of schema with frontend validators. I could not find quick answers for some of the questions.
Sorry for many questions. I can contribute to code if needed.