[ 
https://issues.apache.org/jira/browse/SLING-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Radu Cotescu updated SLING-2803:
--------------------------------

    Attachment: org.apache.sling.validation-2.zip

I've improved the API and added more functionality to the default 
implementation and testing modules.

The changes from the new attached archive (org.apache.sling.validation-2.zip, 
3c00ec5e0a9fd983841e07194479fd30) include:

* API improvements / changes:
        - 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:
                1. test-services - some test services needed for triggering the 
validation code
                2. 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-2.zip, 
> org.apache.sling.validation.zip
>
>
> 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