They are meant to give a feeling for how to use the library and should not be considered production ready code.
The message can also be a function which will be called to retrieve the message, besides this it is treated like a normal message (the attribute name is prepended etc).
If the message is not a function and not a string it is simply returned as is.
The validation constraints can be declared in JSON and shared between clients and the server. One thing that is a bit unorthodox is that most validators will consider undefined values (,) valid values.
So for example adding a constraint of at least 6 characters will be like saying If the attribute is given it must be at least 6 characters.
is an open source component of Wrapp and is licensed under the MIT license.