You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/04/04 21:24:41 UTC

[jira] [Commented] (SLING-6516) ValidationModelProvider evaluating additional annotations on a Sling Model bound to a specific resource type

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

ASF GitHub Bot commented on SLING-6516:
---------------------------------------

GitHub user karolisma opened a pull request:

    https://github.com/apache/sling/pull/211

    SLING-6516 Added ValidationModel registration on bundle installation.

    Added ChildrenValidator, FieldValidator and NameRegex annotations.
    Refactored ResourcePropertyBuilder and ChildResourceBuilder to work with annotations.
    Added Sling Models API dependency.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/karolisma/sling SLING-6516

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sling/pull/211.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #211
    
----
commit 45c281dc76428489e79b1d5743b3bf591d9b78e7
Author: Karolis Mackevicius <ka...@netcentric.biz>
Date:   2017-04-04T21:22:46Z

    SLING-6516 Added ValidationModel registration on bundle installation.
    Added ChildrenValidator, FieldValidator and NameRegex annotations.
    Refactored ResourcePropertyBuilder and ChildResourceBuilder to work with annotations.
    Added Sling Models API dependency.

----


> ValidationModelProvider evaluating additional annotations on a Sling Model bound to a specific resource type
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-6516
>                 URL: https://issues.apache.org/jira/browse/SLING-6516
>             Project: Sling
>          Issue Type: Improvement
>          Components: Validation
>            Reporter: Konrad Windszus
>
> Instead of providing a validation model through a dedicated sling resource with specific properties, it is often more handy to rely on annotations. A new ValidationModelProvider should support additional annotations on SlingModels defining a validation model for the underlying resource type of that SlingModel.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)