[ 
https://issues.apache.org/jira/browse/SLING-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13619558#comment-13619558
 ] 

Carsten Ziegeler commented on SLING-2803:
-----------------------------------------

This is an interesting approach - I like the approach to have something like a 
model based on a resource type.
What do you think of making the model a descriptive approach by adding methods 
to get all fields where a field has a data type and optional validators. This 
would allow a single implementaiton in the validator service to use this model 
and the provided data (the value map) and validate the data based on the model. 
Right now, every model would have to implement the validation (and lookup of 
validators etc) by themselves.
                
> Create a Validation module capable of validating POST requests or Resources
> ---------------------------------------------------------------------------
>
>                 Key: SLING-2803
>                 URL: https://issues.apache.org/jira/browse/SLING-2803
>             Project: Sling
>          Issue Type: New Feature
>            Reporter: Radu Cotescu
>
> Several Sling users have asked in the past [1] about a Validation mechanism 
> in Sling that's able to validate data coming from the user. However, such a 
> module is still missing.
> This issue is meant to track the work progress on such a module.
> Ideally the module should be able to validate both request parameters and 
> Resources, by obtaining their properties via a ValueMap and provide feedback 
> in case of a validation error.
> [1] - http://sling.markmail.org/search/?q=validation

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to