[
https://issues.apache.org/jira/browse/SLING-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13620801#comment-13620801
]
Alexander Klimetschek commented on SLING-2803:
----------------------------------------------
@Bertrand: my proposal above was to scratch explicit request parameter support
for the first shot and try to go with resource-based validation as far as
possible. Then maybe that ValueMap trick that Radu included in his proposal
could be done on top of it... The problem I see is that with the content
structure, there is only one format, so easy to build one validation for it.
With request parameters, you can have many different variants describing the
same content, requiring different validation models for the same content in the
end.
> 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