[hibernate-issues] [Hibernate-JIRA] Commented: (HV-499) Add @URI validator to support relative URLs
Gunnar Morling (JIRA)
noreply at atlassian.com
Wed Apr 11 13:28:49 EDT 2012
[ https://hibernate.onjira.com/browse/HV-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46247#comment-46247 ]
Gunnar Morling commented on HV-499:
-----------------------------------
{quote}
Or we just leave things as they are and they "use @Pattern" ;-)
{quote}
I think that's what I'd be preferring atm. For non-relative URLs, the {{regexp}} attribute provides _additional_ value, but the constraint is also useful without the regular expression (by filtering host, protocol etc.). For relative URLs, the regular expression is the _only_ really constraining attribute, that's why I think directly using {{@Pattern}} makes more sense in this case.
> Add @URI validator to support relative URLs
> -------------------------------------------
>
> Key: HV-499
> URL: https://hibernate.onjira.com/browse/HV-499
> Project: Hibernate Validator
> Issue Type: New Feature
> Components: validators
> Affects Versions: 4.2.0.Final
> Reporter: Ted Bergeron
> Fix For: 4.3.0.CR1
>
>
> Should be trivial to leverage the @URL logic to allow for relative URI's.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list