Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Add hibernateUrl validator #27

Closed
philippd opened this issue Apr 24, 2014 · 2 comments
Closed

Add hibernateUrl validator #27

philippd opened this issue Apr 24, 2014 · 2 comments
Assignees

Comments

@philippd
Copy link
Collaborator

Add new validator for URLs using the regex used by Hibernate URL validator: http://docs.jboss.org/hibernate/validator/5.1/api/org/hibernate/validator/constraints/URL.html
This validator will be used for @url annotations when the valdr-bean-validation plugin is used for the back-end.

see #24

@marcelstoer
Copy link
Collaborator

Hibernate does not rely on regex but on java.net.URL (see https://hibernate.atlassian.net/browse/HV-886). This means that in order to port this to JavaScript we have 3 (or more?) options:

@marcelstoer
Copy link
Collaborator

Decision: we create dedicated hibernateUrl validator which will delegate to the url validator (adapted from AngularJS) for now. It'll therefore ignore the Hibernate properties protocol, host, port.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants