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

Radu Cotescu commented on SLING-2803:
-------------------------------------

I've updated the attached archive in order to provide you with the latest 
implementation. The attached code corresponds to tag 
https://github.com/raducotescu/org.apache.sling.validation/tree/adaptTo2014.

New features:
* API improvements / changes:
** ValidationModels can describe resource trees
** removed the ValidatorArgument object which was passed in lists in favour of 
a simple key-value arguments map
** created a ValidatorException that can be thrown by Validators in case the 
validate method is called with missing but expected arguments

* CORE (default implementation):
** implemented API changes
** implemented validation models cache invalidation in ValidationServiceImpl
** implemented validation models overlaying in ValidationServiceImpl 
(/apps/sling/validation/models vs. /libs/sling/validation/models)
** provided a default RegexValidator that is more flexible than the previous 
AlphaCharactersValidator

* TEST SERVICES / IT
** separated the test services from the integration tests by creating two 
additional submodules:
**# test-services - some test services needed for triggering the validation code
**# it-http - a jar containing integration tests that are run automatically on 
a customised Sling Launchpad

> 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
>         Attachments: org.apache.sling.validation.zip, 
> org.apache.sling.validation.zip.sha1
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to