GitHub user karolisma opened a pull request: https://github.com/apache/sling/pull/231
Sling 6516 Annotation Based ValidationModelProvider evaluating additional annotations on a Sling Model bound to a specific resource type and registering ValidationModels 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/231.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 #231 ---- commit 45c281dc76428489e79b1d5743b3bf591d9b78e7 Author: Karolis Mackevicius <karolis.mackevic...@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. commit 1b1156cf6a1461287b569f90f46dbce166768f60 Author: Karolis Mackevicius <karolis.mackevic...@netcentric.biz> Date: 2017-05-02T14:51:52Z SLING-6516 Adding validation for child resources based on injected Sling Models. commit dfdf31fe02d16fd89510e6172be451e2e856513b Author: Karolis Mackevicius <karolis.mackevic...@netcentric.biz> Date: 2017-05-06T14:44:15Z MAMASSETS-180 Refactoring. JUnit tests for ValidationModelImplementation. commit c73a2ef868b10ddd840dcb62f59d5e306b4eaa76 Author: Karolis Mackevicius <karolis.mackevic...@netcentric.biz> Date: 2017-05-07T10:04:45Z MAMASSETS-180 Fixing multiple and optional issues. JavaDocs. JUnit tests. commit 681169ec525837ad37ba187cd5da7ea89896b645 Author: Karolis Mackevicius <karolis.mackevic...@netcentric.biz> Date: 2017-05-09T09:39:51Z SLING-6516 JavaDocs commit 570b1a76ee911563bd1b3a95230729b610c47001 Author: Karolis Mackevicius <karolis.mackevic...@netcentric.biz> Date: 2017-05-09T20:18:06Z SLING-6516 Renaming class name to Validation Model Register. commit be3139b9a4dd36a941e85e158d5d00fa31b0ac96 Author: Karolis Mackevicius <karolis.mackevic...@netcentric.biz> Date: 2017-05-17T12:33:50Z SLING-6516 Removing unused method. Minor changes in javadocs and method names. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---