validate.js
validate.js copied to clipboard
To what extent is this cross language?
The docs say that:
The goal of validate.js is to provide a cross framework and cross language way of validating data. The validation constraints can be declared in JSON and shared between clients and the server.
I understand that the constraints can be declared in JSON, but as far as I can see, the implementation of the equivalent of the validate(attributes, constraints, [options])
function is then left unto the user, is that correct?
If so, I'll make a PR to add something to the docs that informs everyone.
I wondered about that too when I read it in the docs, and my interpretation was that this library is cross-language to the extent that JSON is cross-language (for example, a Java application could work with the JSON and give that to the client JS code or something). I didn't think it was referring to the implementation.
im working on an app thats for english and danish users, the email validation doesnt seem to like special characters like "æ" in the domain. Not sure if there is a work around yet.