Open Relequestual opened 9 years ago
Instead of qr/^\S+@\S+.\S+$/, you probably meant qr/^\S+@\S+[.]\S+$/, i.e. escaped dot.
Also, https://spacetelescope.github.io/understanding-json-schema/reference/string.html states that email validation is according to https://tools.ietf.org/html/rfc5322#section-3.4.1
The current regex for email will only return valid if the field only contains an @ symbol. Obivously this is wrong. I created an issue for it at https://github.com/tobyink/p5-json-schema/issues/7