spyne icon indicating copy to clipboard operation
spyne copied to clipboard

Hybrid validation support

Open DXist opened this issue 10 years ago • 2 comments

Validation of email address is not possible using lxml. I think it may be a good idea to enforce lxml validation with some soft validators.

We may need extra method in validation API that is called in both validation strategies.

DXist avatar Jun 10 '14 12:06 DXist

You can validate email addresses using regular expressions up to a point. That doesn't cover your use case?

plq avatar Jun 10 '14 12:06 plq

In my case I want to use Django email validator that uses extra checks after regex validation to support RFC 3490. I can't just copy and paste email_re from Django code because XmlSchema regex language is limited.

DXist avatar Jun 10 '14 13:06 DXist