[ 
http://www.stripesframework.org/jira/browse/STS-752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Frederic Daoud resolved STS-752.
--------------------------------

    Resolution: Not a Bug

@Validate(required=true) checks for a value up front. Only if the value is not 
null is the type converter invoked. There are use cases where you want to 
return null from a type converter without a validation error. If you want a 
validation error, report it within the type converter.

> @Validate(required=true) only applies to parameters pre-conversion
> ------------------------------------------------------------------
>
>                 Key: STS-752
>                 URL: http://www.stripesframework.org/jira/browse/STS-752
>             Project: Stripes
>          Issue Type: Bug
>          Components: Validation
>            Reporter: Aaron Porter
>            Assignee: Aaron Porter
>            Priority: Minor
>             Fix For: Release 1.6
>
>
> Validation for required parameters passes when a parameter is not null and 
> not empty even if the type converter returns null. It seems that if a 
> property is marked with @Validate(required=true) then the type converter 
> returning null should trigger a validation error.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to