validate.js icon indicating copy to clipboard operation
validate.js copied to clipboard

To what extent is this cross language?

Open bobbyrenwick opened this issue 6 years ago • 2 comments

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.

bobbyrenwick avatar Mar 07 '18 01:03 bobbyrenwick

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.

dagoss avatar May 14 '18 16:05 dagoss

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.

howitworks18 avatar Jun 17 '19 18:06 howitworks18